chore: fix file permissions and ownership across project
- Changed ownership of all files to scheianu:scheianu - Set directories to 755 permissions (rwxr-xr-x) - Set files to 644 permissions (rw-r--r--) - Made shell scripts executable (755) - Allows development without requiring sudo for file modifications - Improves development workflow and security
0
.dockerignore
Executable file → Normal file
0
.gitignore
vendored
Executable file → Normal file
0
Dockerfile
Executable file → Normal file
120
QUICK_START.md
@@ -1,120 +0,0 @@
|
|||||||
# 🚀 DigiServer Deployment - Quick Reference Card
|
|
||||||
|
|
||||||
## Instant Deployment
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd /path/to/digiserver-v2
|
|
||||||
./deploy.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
That's it! ✅
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📖 Documentation Files
|
|
||||||
|
|
||||||
| File | Purpose | Size |
|
|
||||||
|------|---------|------|
|
|
||||||
| [DEPLOYMENT_INDEX.md](DEPLOYMENT_INDEX.md) | Navigation guide | 8.1 KB |
|
|
||||||
| [DEPLOYMENT_README.md](DEPLOYMENT_README.md) | Complete guide | 9.4 KB |
|
|
||||||
| [DOCKER_EXEC_COMMANDS.md](DOCKER_EXEC_COMMANDS.md) | Command reference | 7.6 KB |
|
|
||||||
| [DEPLOYMENT_COMMANDS.md](DEPLOYMENT_COMMANDS.md) | Detailed guide | 6.8 KB |
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🔧 Executable Scripts
|
|
||||||
|
|
||||||
| Script | Purpose | Time |
|
|
||||||
|--------|---------|------|
|
|
||||||
| [deploy.sh](deploy.sh) | Fully automated | 2-3 min |
|
|
||||||
| [setup_https.sh](setup_https.sh) | Semi-automated | 3-5 min |
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🎯 Common Commands
|
|
||||||
|
|
||||||
### Check Status
|
|
||||||
```bash
|
|
||||||
docker-compose ps
|
|
||||||
```
|
|
||||||
|
|
||||||
### View Logs
|
|
||||||
```bash
|
|
||||||
docker-compose logs -f digiserver-app
|
|
||||||
```
|
|
||||||
|
|
||||||
### Verify HTTPS Configuration
|
|
||||||
```bash
|
|
||||||
docker-compose exec -T digiserver-app python /app/https_manager.py status
|
|
||||||
```
|
|
||||||
|
|
||||||
### Access the Application
|
|
||||||
```
|
|
||||||
https://digiserver.sibiusb.harting.intra
|
|
||||||
https://10.76.152.164
|
|
||||||
https://digiserver
|
|
||||||
```
|
|
||||||
|
|
||||||
### Default Login
|
|
||||||
```
|
|
||||||
Username: admin
|
|
||||||
Password: admin123
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🆘 Troubleshooting
|
|
||||||
|
|
||||||
| Issue | Solution |
|
|
||||||
|-------|----------|
|
|
||||||
| Containers won't start | `docker-compose logs` |
|
|
||||||
| Migration fails | Check DB connection, see docs |
|
|
||||||
| HTTPS errors | Clear Caddy cache: `docker volume rm digiserver-v2_caddy-*` |
|
|
||||||
| Port conflict | `lsof -i :443` or change in docker-compose.yml |
|
|
||||||
|
|
||||||
See [DEPLOYMENT_README.md#-troubleshooting](DEPLOYMENT_README.md#-troubleshooting) for full guide.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🌍 Deploy on Different PC
|
|
||||||
|
|
||||||
1. Copy project files
|
|
||||||
2. Install Docker & Docker Compose
|
|
||||||
3. Run `./deploy.sh`
|
|
||||||
|
|
||||||
Done! 🎉
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🔑 Customize Deployment
|
|
||||||
|
|
||||||
```bash
|
|
||||||
HOSTNAME=myserver \
|
|
||||||
DOMAIN=myserver.internal \
|
|
||||||
IP_ADDRESS=192.168.1.100 \
|
|
||||||
EMAIL=admin@example.com \
|
|
||||||
./deploy.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 📚 Need More Help?
|
|
||||||
|
|
||||||
- **First time?** → [DEPLOYMENT_README.md](DEPLOYMENT_README.md)
|
|
||||||
- **Need a command?** → [DOCKER_EXEC_COMMANDS.md](DOCKER_EXEC_COMMANDS.md)
|
|
||||||
- **Lost?** → [DEPLOYMENT_INDEX.md](DEPLOYMENT_INDEX.md)
|
|
||||||
- **Troubleshooting?** → [DEPLOYMENT_README.md#-troubleshooting](DEPLOYMENT_README.md#-troubleshooting)
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## ✨ What You Get
|
|
||||||
|
|
||||||
✅ Web application with admin dashboard
|
|
||||||
✅ HTTPS with self-signed certificates
|
|
||||||
✅ User management system
|
|
||||||
✅ Player & content management
|
|
||||||
✅ Fully configured & ready to use
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
**Ready to deploy?** `./deploy.sh` 🚀
|
|
||||||
0
app/app.py
Executable file → Normal file
0
app/blueprints/__init__.py
Executable file → Normal file
0
app/blueprints/api.py
Executable file → Normal file
0
app/blueprints/auth.py
Executable file → Normal file
0
app/blueprints/content.py
Executable file → Normal file
0
app/blueprints/content_old.py
Executable file → Normal file
0
app/blueprints/groups.py
Executable file → Normal file
0
app/blueprints/main.py
Executable file → Normal file
0
app/blueprints/players.py
Executable file → Normal file
0
app/blueprints/playlist.py
Executable file → Normal file
0
app/config.py
Executable file → Normal file
0
app/extensions.py
Executable file → Normal file
0
app/models/__init__.py
Executable file → Normal file
0
app/models/content.py
Executable file → Normal file
0
app/models/group.py
Executable file → Normal file
0
app/models/player.py
Executable file → Normal file
0
app/models/player_edit.py
Executable file → Normal file
0
app/models/player_feedback.py
Executable file → Normal file
0
app/models/player_user.py
Executable file → Normal file
0
app/models/playlist.py
Executable file → Normal file
0
app/models/server_log.py
Executable file → Normal file
0
app/models/user.py
Executable file → Normal file
0
app/static/icons/edit.svg
Executable file → Normal file
|
Before Width: | Height: | Size: 294 B After Width: | Height: | Size: 294 B |
0
app/static/icons/home.svg
Executable file → Normal file
|
Before Width: | Height: | Size: 311 B After Width: | Height: | Size: 311 B |
0
app/static/icons/info.svg
Executable file → Normal file
|
Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 329 B |
0
app/static/icons/monitor.svg
Executable file → Normal file
|
Before Width: | Height: | Size: 301 B After Width: | Height: | Size: 301 B |
0
app/static/icons/moon.svg
Executable file → Normal file
|
Before Width: | Height: | Size: 257 B After Width: | Height: | Size: 257 B |
0
app/static/icons/playlist.svg
Executable file → Normal file
|
Before Width: | Height: | Size: 259 B After Width: | Height: | Size: 259 B |
0
app/static/icons/sun.svg
Executable file → Normal file
|
Before Width: | Height: | Size: 651 B After Width: | Height: | Size: 651 B |
0
app/static/icons/trash.svg
Executable file → Normal file
|
Before Width: | Height: | Size: 334 B After Width: | Height: | Size: 334 B |
0
app/static/icons/upload.svg
Executable file → Normal file
|
Before Width: | Height: | Size: 345 B After Width: | Height: | Size: 345 B |
0
app/static/icons/warning.svg
Executable file → Normal file
|
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 396 B |