From a4262da7c93f4708d64ea769978ac561b6d3f845 Mon Sep 17 00:00:00 2001 From: Quality App Developer Date: Thu, 15 Jan 2026 22:39:51 +0200 Subject: [PATCH] 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 --- .dockerignore | 0 .gitignore | 0 Dockerfile | 0 QUICK_START.md | 120 ------------------ app/app.py | 0 app/blueprints/__init__.py | 0 app/blueprints/api.py | 0 app/blueprints/auth.py | 0 app/blueprints/content.py | 0 app/blueprints/content_old.py | 0 app/blueprints/groups.py | 0 app/blueprints/main.py | 0 app/blueprints/players.py | 0 app/blueprints/playlist.py | 0 app/config.py | 0 app/extensions.py | 0 app/models/__init__.py | 0 app/models/content.py | 0 app/models/group.py | 0 app/models/player.py | 0 app/models/player_edit.py | 0 app/models/player_feedback.py | 0 app/models/player_user.py | 0 app/models/playlist.py | 0 app/models/server_log.py | 0 app/models/user.py | 0 app/static/icons/edit.svg | 0 app/static/icons/home.svg | 0 app/static/icons/info.svg | 0 app/static/icons/monitor.svg | 0 app/static/icons/moon.svg | 0 app/static/icons/playlist.svg | 0 app/static/icons/sun.svg | 0 app/static/icons/trash.svg | 0 app/static/icons/upload.svg | 0 app/static/icons/warning.svg | 0 app/static/uploads/.gitkeep | 0 app/templates/admin/admin.html | 0 app/templates/admin/customize_logos.html | 0 app/templates/admin/dependencies.html | 0 app/templates/admin/editing_users.html | 0 app/templates/admin/leftover_media.html | 0 app/templates/admin/user_management.html | 0 app/templates/auth/change_password.html | 0 app/templates/auth/login.html | 0 app/templates/auth/register.html | 0 app/templates/base.html | 0 app/templates/content/content_list.html | 0 app/templates/content/content_list_new.html | 0 app/templates/content/edit_content.html | 0 .../content/manage_playlist_content.html | 0 app/templates/content/media_library.html | 0 app/templates/content/upload_content.html | 0 app/templates/content/upload_media.html | 0 app/templates/dashboard.html | 0 app/templates/errors/403.html | 0 app/templates/errors/404.html | 0 app/templates/errors/500.html | 0 app/templates/groups/create_group.html | 0 app/templates/groups/edit_group.html | 0 app/templates/groups/group_fullscreen.html | 0 app/templates/groups/groups_list.html | 0 app/templates/groups/manage_group.html | 0 app/templates/players/add_player.html | 0 app/templates/players/edit_player.html | 0 app/templates/players/edited_media.html | 0 app/templates/players/manage_player.html | 0 app/templates/players/player_fullscreen.html | 0 app/templates/players/player_page.html | 0 app/templates/players/players_list.html | 0 app/templates/playlist/manage_playlist.html | 0 app/utils/__init__.py | 0 app/utils/group_player_management.py | 0 app/utils/logger.py | 0 app/utils/pptx_converter.py | 0 app/utils/uploads.py | 0 docker-compose.yml | 0 fix_player_user_schema.py | 0 migrations/add_player_user_table.py | 0 migrations/migrate_player_user_global.py | 0 old_code_documentation/.env.example | 0 .../DATA_DEPLOYMENT.md | 0 old_code_documentation/DOCKER.md | 0 old_code_documentation/HTTPS_SETUP.md | 0 .../IMPLEMENTATION_OPTIONAL_LIBREOFFICE.md | 0 .../NGINX_SETUP_QUICK.md | 0 .../OPTIONAL_DEPENDENCIES.md | 0 .../PLAYER_EDIT_MEDIA_API.md | 0 .../PROXY_FIX_SETUP.md | 0 old_code_documentation/README.md | 0 old_code_documentation/add_muted_column.py | 0 old_code_documentation/check_fix_player.py | 0 .../migrate_add_edit_enabled.py | 0 requirements.txt | 0 94 files changed, 120 deletions(-) mode change 100755 => 100644 .dockerignore mode change 100755 => 100644 .gitignore mode change 100755 => 100644 Dockerfile delete mode 100644 QUICK_START.md mode change 100755 => 100644 app/app.py mode change 100755 => 100644 app/blueprints/__init__.py mode change 100755 => 100644 app/blueprints/api.py mode change 100755 => 100644 app/blueprints/auth.py mode change 100755 => 100644 app/blueprints/content.py mode change 100755 => 100644 app/blueprints/content_old.py mode change 100755 => 100644 app/blueprints/groups.py mode change 100755 => 100644 app/blueprints/main.py mode change 100755 => 100644 app/blueprints/players.py mode change 100755 => 100644 app/blueprints/playlist.py mode change 100755 => 100644 app/config.py mode change 100755 => 100644 app/extensions.py mode change 100755 => 100644 app/models/__init__.py mode change 100755 => 100644 app/models/content.py mode change 100755 => 100644 app/models/group.py mode change 100755 => 100644 app/models/player.py mode change 100755 => 100644 app/models/player_edit.py mode change 100755 => 100644 app/models/player_feedback.py mode change 100755 => 100644 app/models/player_user.py mode change 100755 => 100644 app/models/playlist.py mode change 100755 => 100644 app/models/server_log.py mode change 100755 => 100644 app/models/user.py mode change 100755 => 100644 app/static/icons/edit.svg mode change 100755 => 100644 app/static/icons/home.svg mode change 100755 => 100644 app/static/icons/info.svg mode change 100755 => 100644 app/static/icons/monitor.svg mode change 100755 => 100644 app/static/icons/moon.svg mode change 100755 => 100644 app/static/icons/playlist.svg mode change 100755 => 100644 app/static/icons/sun.svg mode change 100755 => 100644 app/static/icons/trash.svg mode change 100755 => 100644 app/static/icons/upload.svg mode change 100755 => 100644 app/static/icons/warning.svg mode change 100755 => 100644 app/static/uploads/.gitkeep mode change 100755 => 100644 app/templates/admin/admin.html mode change 100755 => 100644 app/templates/admin/customize_logos.html mode change 100755 => 100644 app/templates/admin/dependencies.html mode change 100755 => 100644 app/templates/admin/editing_users.html mode change 100755 => 100644 app/templates/admin/leftover_media.html mode change 100755 => 100644 app/templates/admin/user_management.html mode change 100755 => 100644 app/templates/auth/change_password.html mode change 100755 => 100644 app/templates/auth/login.html mode change 100755 => 100644 app/templates/auth/register.html mode change 100755 => 100644 app/templates/base.html mode change 100755 => 100644 app/templates/content/content_list.html mode change 100755 => 100644 app/templates/content/content_list_new.html mode change 100755 => 100644 app/templates/content/edit_content.html mode change 100755 => 100644 app/templates/content/manage_playlist_content.html mode change 100755 => 100644 app/templates/content/media_library.html mode change 100755 => 100644 app/templates/content/upload_content.html mode change 100755 => 100644 app/templates/content/upload_media.html mode change 100755 => 100644 app/templates/dashboard.html mode change 100755 => 100644 app/templates/errors/403.html mode change 100755 => 100644 app/templates/errors/404.html mode change 100755 => 100644 app/templates/errors/500.html mode change 100755 => 100644 app/templates/groups/create_group.html mode change 100755 => 100644 app/templates/groups/edit_group.html mode change 100755 => 100644 app/templates/groups/group_fullscreen.html mode change 100755 => 100644 app/templates/groups/groups_list.html mode change 100755 => 100644 app/templates/groups/manage_group.html mode change 100755 => 100644 app/templates/players/add_player.html mode change 100755 => 100644 app/templates/players/edit_player.html mode change 100755 => 100644 app/templates/players/edited_media.html mode change 100755 => 100644 app/templates/players/manage_player.html mode change 100755 => 100644 app/templates/players/player_fullscreen.html mode change 100755 => 100644 app/templates/players/player_page.html mode change 100755 => 100644 app/templates/players/players_list.html mode change 100755 => 100644 app/templates/playlist/manage_playlist.html mode change 100755 => 100644 app/utils/__init__.py mode change 100755 => 100644 app/utils/group_player_management.py mode change 100755 => 100644 app/utils/logger.py mode change 100755 => 100644 app/utils/pptx_converter.py mode change 100755 => 100644 app/utils/uploads.py mode change 100755 => 100644 docker-compose.yml mode change 100755 => 100644 fix_player_user_schema.py mode change 100755 => 100644 migrations/add_player_user_table.py mode change 100755 => 100644 migrations/migrate_player_user_global.py mode change 100755 => 100644 old_code_documentation/.env.example rename DATA_DEPLOYMENT.md => old_code_documentation/DATA_DEPLOYMENT.md (100%) mode change 100755 => 100644 old_code_documentation/DOCKER.md mode change 100755 => 100644 old_code_documentation/HTTPS_SETUP.md mode change 100755 => 100644 old_code_documentation/IMPLEMENTATION_OPTIONAL_LIBREOFFICE.md rename NGINX_SETUP_QUICK.md => old_code_documentation/NGINX_SETUP_QUICK.md (100%) mode change 100755 => 100644 old_code_documentation/OPTIONAL_DEPENDENCIES.md mode change 100755 => 100644 old_code_documentation/PLAYER_EDIT_MEDIA_API.md rename PROXY_FIX_SETUP.md => old_code_documentation/PROXY_FIX_SETUP.md (100%) mode change 100755 => 100644 old_code_documentation/README.md mode change 100755 => 100644 old_code_documentation/add_muted_column.py mode change 100755 => 100644 old_code_documentation/check_fix_player.py mode change 100755 => 100644 old_code_documentation/migrate_add_edit_enabled.py mode change 100755 => 100644 requirements.txt diff --git a/.dockerignore b/.dockerignore old mode 100755 new mode 100644 diff --git a/.gitignore b/.gitignore old mode 100755 new mode 100644 diff --git a/Dockerfile b/Dockerfile old mode 100755 new mode 100644 diff --git a/QUICK_START.md b/QUICK_START.md deleted file mode 100644 index 32a8ca1..0000000 --- a/QUICK_START.md +++ /dev/null @@ -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` 🚀 diff --git a/app/app.py b/app/app.py old mode 100755 new mode 100644 diff --git a/app/blueprints/__init__.py b/app/blueprints/__init__.py old mode 100755 new mode 100644 diff --git a/app/blueprints/api.py b/app/blueprints/api.py old mode 100755 new mode 100644 diff --git a/app/blueprints/auth.py b/app/blueprints/auth.py old mode 100755 new mode 100644 diff --git a/app/blueprints/content.py b/app/blueprints/content.py old mode 100755 new mode 100644 diff --git a/app/blueprints/content_old.py b/app/blueprints/content_old.py old mode 100755 new mode 100644 diff --git a/app/blueprints/groups.py b/app/blueprints/groups.py old mode 100755 new mode 100644 diff --git a/app/blueprints/main.py b/app/blueprints/main.py old mode 100755 new mode 100644 diff --git a/app/blueprints/players.py b/app/blueprints/players.py old mode 100755 new mode 100644 diff --git a/app/blueprints/playlist.py b/app/blueprints/playlist.py old mode 100755 new mode 100644 diff --git a/app/config.py b/app/config.py old mode 100755 new mode 100644 diff --git a/app/extensions.py b/app/extensions.py old mode 100755 new mode 100644 diff --git a/app/models/__init__.py b/app/models/__init__.py old mode 100755 new mode 100644 diff --git a/app/models/content.py b/app/models/content.py old mode 100755 new mode 100644 diff --git a/app/models/group.py b/app/models/group.py old mode 100755 new mode 100644 diff --git a/app/models/player.py b/app/models/player.py old mode 100755 new mode 100644 diff --git a/app/models/player_edit.py b/app/models/player_edit.py old mode 100755 new mode 100644 diff --git a/app/models/player_feedback.py b/app/models/player_feedback.py old mode 100755 new mode 100644 diff --git a/app/models/player_user.py b/app/models/player_user.py old mode 100755 new mode 100644 diff --git a/app/models/playlist.py b/app/models/playlist.py old mode 100755 new mode 100644 diff --git a/app/models/server_log.py b/app/models/server_log.py old mode 100755 new mode 100644 diff --git a/app/models/user.py b/app/models/user.py old mode 100755 new mode 100644 diff --git a/app/static/icons/edit.svg b/app/static/icons/edit.svg old mode 100755 new mode 100644 diff --git a/app/static/icons/home.svg b/app/static/icons/home.svg old mode 100755 new mode 100644 diff --git a/app/static/icons/info.svg b/app/static/icons/info.svg old mode 100755 new mode 100644 diff --git a/app/static/icons/monitor.svg b/app/static/icons/monitor.svg old mode 100755 new mode 100644 diff --git a/app/static/icons/moon.svg b/app/static/icons/moon.svg old mode 100755 new mode 100644 diff --git a/app/static/icons/playlist.svg b/app/static/icons/playlist.svg old mode 100755 new mode 100644 diff --git a/app/static/icons/sun.svg b/app/static/icons/sun.svg old mode 100755 new mode 100644 diff --git a/app/static/icons/trash.svg b/app/static/icons/trash.svg old mode 100755 new mode 100644 diff --git a/app/static/icons/upload.svg b/app/static/icons/upload.svg old mode 100755 new mode 100644 diff --git a/app/static/icons/warning.svg b/app/static/icons/warning.svg old mode 100755 new mode 100644 diff --git a/app/static/uploads/.gitkeep b/app/static/uploads/.gitkeep old mode 100755 new mode 100644 diff --git a/app/templates/admin/admin.html b/app/templates/admin/admin.html old mode 100755 new mode 100644 diff --git a/app/templates/admin/customize_logos.html b/app/templates/admin/customize_logos.html old mode 100755 new mode 100644 diff --git a/app/templates/admin/dependencies.html b/app/templates/admin/dependencies.html old mode 100755 new mode 100644 diff --git a/app/templates/admin/editing_users.html b/app/templates/admin/editing_users.html old mode 100755 new mode 100644 diff --git a/app/templates/admin/leftover_media.html b/app/templates/admin/leftover_media.html old mode 100755 new mode 100644 diff --git a/app/templates/admin/user_management.html b/app/templates/admin/user_management.html old mode 100755 new mode 100644 diff --git a/app/templates/auth/change_password.html b/app/templates/auth/change_password.html old mode 100755 new mode 100644 diff --git a/app/templates/auth/login.html b/app/templates/auth/login.html old mode 100755 new mode 100644 diff --git a/app/templates/auth/register.html b/app/templates/auth/register.html old mode 100755 new mode 100644 diff --git a/app/templates/base.html b/app/templates/base.html old mode 100755 new mode 100644 diff --git a/app/templates/content/content_list.html b/app/templates/content/content_list.html old mode 100755 new mode 100644 diff --git a/app/templates/content/content_list_new.html b/app/templates/content/content_list_new.html old mode 100755 new mode 100644 diff --git a/app/templates/content/edit_content.html b/app/templates/content/edit_content.html old mode 100755 new mode 100644 diff --git a/app/templates/content/manage_playlist_content.html b/app/templates/content/manage_playlist_content.html old mode 100755 new mode 100644 diff --git a/app/templates/content/media_library.html b/app/templates/content/media_library.html old mode 100755 new mode 100644 diff --git a/app/templates/content/upload_content.html b/app/templates/content/upload_content.html old mode 100755 new mode 100644 diff --git a/app/templates/content/upload_media.html b/app/templates/content/upload_media.html old mode 100755 new mode 100644 diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html old mode 100755 new mode 100644 diff --git a/app/templates/errors/403.html b/app/templates/errors/403.html old mode 100755 new mode 100644 diff --git a/app/templates/errors/404.html b/app/templates/errors/404.html old mode 100755 new mode 100644 diff --git a/app/templates/errors/500.html b/app/templates/errors/500.html old mode 100755 new mode 100644 diff --git a/app/templates/groups/create_group.html b/app/templates/groups/create_group.html old mode 100755 new mode 100644 diff --git a/app/templates/groups/edit_group.html b/app/templates/groups/edit_group.html old mode 100755 new mode 100644 diff --git a/app/templates/groups/group_fullscreen.html b/app/templates/groups/group_fullscreen.html old mode 100755 new mode 100644 diff --git a/app/templates/groups/groups_list.html b/app/templates/groups/groups_list.html old mode 100755 new mode 100644 diff --git a/app/templates/groups/manage_group.html b/app/templates/groups/manage_group.html old mode 100755 new mode 100644 diff --git a/app/templates/players/add_player.html b/app/templates/players/add_player.html old mode 100755 new mode 100644 diff --git a/app/templates/players/edit_player.html b/app/templates/players/edit_player.html old mode 100755 new mode 100644 diff --git a/app/templates/players/edited_media.html b/app/templates/players/edited_media.html old mode 100755 new mode 100644 diff --git a/app/templates/players/manage_player.html b/app/templates/players/manage_player.html old mode 100755 new mode 100644 diff --git a/app/templates/players/player_fullscreen.html b/app/templates/players/player_fullscreen.html old mode 100755 new mode 100644 diff --git a/app/templates/players/player_page.html b/app/templates/players/player_page.html old mode 100755 new mode 100644 diff --git a/app/templates/players/players_list.html b/app/templates/players/players_list.html old mode 100755 new mode 100644 diff --git a/app/templates/playlist/manage_playlist.html b/app/templates/playlist/manage_playlist.html old mode 100755 new mode 100644 diff --git a/app/utils/__init__.py b/app/utils/__init__.py old mode 100755 new mode 100644 diff --git a/app/utils/group_player_management.py b/app/utils/group_player_management.py old mode 100755 new mode 100644 diff --git a/app/utils/logger.py b/app/utils/logger.py old mode 100755 new mode 100644 diff --git a/app/utils/pptx_converter.py b/app/utils/pptx_converter.py old mode 100755 new mode 100644 diff --git a/app/utils/uploads.py b/app/utils/uploads.py old mode 100755 new mode 100644 diff --git a/docker-compose.yml b/docker-compose.yml old mode 100755 new mode 100644 diff --git a/fix_player_user_schema.py b/fix_player_user_schema.py old mode 100755 new mode 100644 diff --git a/migrations/add_player_user_table.py b/migrations/add_player_user_table.py old mode 100755 new mode 100644 diff --git a/migrations/migrate_player_user_global.py b/migrations/migrate_player_user_global.py old mode 100755 new mode 100644 diff --git a/old_code_documentation/.env.example b/old_code_documentation/.env.example old mode 100755 new mode 100644 diff --git a/DATA_DEPLOYMENT.md b/old_code_documentation/DATA_DEPLOYMENT.md similarity index 100% rename from DATA_DEPLOYMENT.md rename to old_code_documentation/DATA_DEPLOYMENT.md diff --git a/old_code_documentation/DOCKER.md b/old_code_documentation/DOCKER.md old mode 100755 new mode 100644 diff --git a/old_code_documentation/HTTPS_SETUP.md b/old_code_documentation/HTTPS_SETUP.md old mode 100755 new mode 100644 diff --git a/old_code_documentation/IMPLEMENTATION_OPTIONAL_LIBREOFFICE.md b/old_code_documentation/IMPLEMENTATION_OPTIONAL_LIBREOFFICE.md old mode 100755 new mode 100644 diff --git a/NGINX_SETUP_QUICK.md b/old_code_documentation/NGINX_SETUP_QUICK.md similarity index 100% rename from NGINX_SETUP_QUICK.md rename to old_code_documentation/NGINX_SETUP_QUICK.md diff --git a/old_code_documentation/OPTIONAL_DEPENDENCIES.md b/old_code_documentation/OPTIONAL_DEPENDENCIES.md old mode 100755 new mode 100644 diff --git a/old_code_documentation/PLAYER_EDIT_MEDIA_API.md b/old_code_documentation/PLAYER_EDIT_MEDIA_API.md old mode 100755 new mode 100644 diff --git a/PROXY_FIX_SETUP.md b/old_code_documentation/PROXY_FIX_SETUP.md similarity index 100% rename from PROXY_FIX_SETUP.md rename to old_code_documentation/PROXY_FIX_SETUP.md diff --git a/old_code_documentation/README.md b/old_code_documentation/README.md old mode 100755 new mode 100644 diff --git a/old_code_documentation/add_muted_column.py b/old_code_documentation/add_muted_column.py old mode 100755 new mode 100644 diff --git a/old_code_documentation/check_fix_player.py b/old_code_documentation/check_fix_player.py old mode 100755 new mode 100644 diff --git a/old_code_documentation/migrate_add_edit_enabled.py b/old_code_documentation/migrate_add_edit_enabled.py old mode 100755 new mode 100644 diff --git a/requirements.txt b/requirements.txt old mode 100755 new mode 100644