Commit Graph

86 Commits

Author SHA1 Message Date
DigiServer Developer
5e4950563c Fix admin authentication and update port mapping
- Fix environment variable mismatch in create_default_user.py
- Now correctly uses ADMIN_USER and ADMIN_PASSWORD from docker-compose
- Maintains backward compatibility with DEFAULT_USER and DEFAULT_PASSWORD
- Change port mapping from 8880 to 80 for easier access
- Resolves login issues with admin user credentials
2025-08-11 17:01:58 +03:00
091e985ff2 fix: Simplified Docker deployment and fixed upload path resolution
🐳 Docker Configuration Improvements:
- Simplified docker-compose.yml to use single app folder bind mount
- Removed complex data folder mapping that caused path confusion
- Updated environment variables to match entrypoint script expectations
- Streamlined deployment for better reliability

🔧 Upload System Fixes:
- Fixed path resolution issues in uploads.py for containerized deployment
- Simplified upload folder path handling to work correctly in containers
- Removed complex absolute path conversion logic that caused file placement issues
- Ensured all file operations use consistent /app/static/uploads path

📁 File Processing Improvements:
- Fixed PPTX to JPG conversion workflow path handling
- Corrected PDF processing to save files in correct container location
- Improved video conversion path resolution
- Enhanced error handling and logging for upload operations

🚀 Production Benefits:
- Eliminates 404 errors for uploaded media files
- Ensures files are saved in correct locations within container
- Simplifies development and debugging with direct app folder mounting
- Maintains data consistency across container restarts

 This resolves the upload workflow issues where PPTX files were not
being correctly processed and saved to the expected locations.
2025-08-05 19:16:08 -04:00
1eb0aa3658 feat: v1.1.0 - Production-Ready Docker Deployment
🚀 Major Release: DigiServer v1.1.0 Production Deployment

## 📁 Project Restructure
- Moved all application code to app/ directory for Docker containerization
- Centralized persistent data in data/ directory with volume mounting
- Removed development artifacts and cleaned up project structure

## 🐳 Docker Integration
- Added production-ready Dockerfile with LibreOffice and poppler-utils
- Updated docker-compose.yml for production deployment
- Added .dockerignore for optimized build context
- Created automated deployment script (deploy-docker.sh)
- Added cleanup script (cleanup-docker.sh)

## 📄 Document Processing Enhancements
- Integrated LibreOffice for professional PPTX to PDF conversion
- Implemented PPTX → PDF → 4K JPG workflow for optimal quality
- Added poppler-utils for enhanced PDF processing
- Simplified PDF conversion to 300 DPI for reliability

## 🔧 File Management Improvements
- Fixed absolute path resolution for containerized deployment
- Updated all file deletion functions with proper path handling
- Enhanced bulk delete functions for players and groups
- Improved file upload workflow with consistent path management

## 🛠️ Code Quality & Stability
- Cleaned up pptx_converter.py from 442 to 86 lines
- Removed all Python cache files (__pycache__/, *.pyc)
- Updated file operations for production reliability
- Enhanced error handling and logging

## 📚 Documentation Updates
- Updated README.md with Docker deployment instructions
- Added comprehensive DEPLOYMENT.md guide
- Included production deployment best practices
- Added automated deployment workflow documentation

## 🔐 Security & Production Features
- Environment-based configuration
- Health checks and container monitoring
- Automated admin user creation
- Volume-mounted persistent data
- Production logging and error handling

##  Ready for Production
- Clean project structure optimized for Docker
- Automated deployment with ./deploy-docker.sh
- Professional document processing pipeline
- Reliable file management system
- Complete documentation and deployment guides

Access: http://localhost:8880 | Admin: admin/Initial01!
v1.1.0
2025-08-05 18:04:02 -04:00
4e5aff1c02 Updated .gitignore to exclude instance directory 2025-08-05 11:29:44 -04:00
318f783de3 Fix orientation parameter handling and template URL endpoints
- Add orientation parameter support to create_group and edit_group functions
- Fix manage_group.html template URL endpoint from 'update_group_content_order' to 'update_group_content_order_route'
- Add orientation field and filtering to edit_group.html template with JavaScript functionality
- Update group_player_management.py to handle orientation validation in create and edit operations
- Fix docker-compose.yml to include build directive and correct volume paths
- Update entrypoint.sh to handle fresh deployments without migrations
- Ensure orientation consistency across group and player management

These changes resolve:
- Internal Server Error on manage_group page
- Missing orientation parameter in group creation/editing
- Template URL endpoint mismatches
- Docker deployment issues with fresh installations
2025-08-01 15:15:59 -04:00
70d76f45e7 updated 2025-08-01 13:22:37 -04:00
1326543418 updated to 4k images from pptx 2025-08-01 10:23:38 +03:00
c8bbbebb48 updated solution 2025-07-31 16:37:54 +03:00
756f9052b5 Fix Docker deployment issues and add fresh database support
- Fix: Add missing 'click' import to app.py to resolve startup error
- Fix: Update docker-compose.yml volume mappings to use correct persistent storage paths (/opt/digi-s)
- Improve: Enhanced entrypoint.sh for better database initialization
- Update: Configuration files for improved deployment

This resolves the Docker container startup issues and ensures proper persistent storage.
2025-07-18 15:40:57 -04:00
da57e066ae final update 2025-06-29 17:04:23 +03:00
68cc47882c updated versions and players 2025-06-29 16:48:15 +03:00
73c41303a9 updated logs and players page 2025-06-29 16:37:59 +03:00
f20a606183 updated the order resulted in playlist 2025-06-29 15:13:21 +03:00
1800c9c310 updated functions 2025-06-27 17:01:30 +03:00
67c9083a6e final upload 2025-06-27 16:50:35 +03:00
d154853c7d updated structurea and file management , improved ppt transformationa and pdf handeling 2025-06-27 16:50:15 +03:00
f04e91ee08 updated 2025-06-26 21:02:04 +03:00
e99e3a2263 updated to cairosvg 2025-06-26 17:03:03 +03:00
7bdd60177e updated 2025-06-26 16:57:09 +03:00
c59deafcf7 saved 2025-06-25 15:44:35 +03:00
24319d46bf updated 2025-06-24 16:10:07 +03:00
52328a81af updated to update the playlis correctly 2025-06-24 15:40:59 +03:00
c57bb7fe6d updated server 2025-06-20 16:33:21 +03:00
2e94a334de updated whit entrypoint 2025-05-28 21:08:09 +03:00
87a9c77ee0 fic docker 2025-05-28 20:53:58 +03:00
b424080e9e updated docker compose 2025-05-22 15:52:28 +03:00
06166c1447 final update 2025-05-22 15:46:03 +03:00
4ee949a829 updated to add images 2025-05-21 10:52:29 +03:00
61242dd386 updated app.py 2025-05-20 11:41:22 +03:00
aab05e6117 updated to upload pictures 2025-05-19 22:05:13 +03:00
7eb8f088f4 updated docke file 2025-05-18 23:24:17 +03:00
303b2d609f updaTED THE VERSION OF PPTX 2025-05-16 15:56:24 +03:00
0056ace8a5 updated requirements 2025-05-16 15:51:42 +03:00
e07ee69c93 updated to final version 2025-05-16 14:25:27 +03:00
8823371102 updated backk 2025-05-16 11:42:06 +03:00
ae9becd905 upda 2025-05-15 16:36:05 +03:00
16ff522aa2 updated requirements 2025-05-15 14:01:06 +03:00
1f772798fb uploade finalized 2025-05-15 12:54:05 +03:00
ebb9bf4583 updated upload functions 2025-05-15 11:23:49 +03:00
de7e234da1 Updated to convert PDF 2025-05-14 16:45:48 +03:00
78fe1da113 running on raspberi at work 2025-05-14 16:26:53 +03:00
8e965b4499 software updated 2025-04-14 10:38:43 +03:00
Ske087
fe72361057 updated 3 2025-04-12 11:44:59 +03:00
4e3c8915d2 ypdated the grpups page and upload 2025-04-10 16:30:54 +03:00
e0b4e2b2d7 cleaning the app 2025-04-10 15:13:02 +03:00
3ecdce84f0 final 2025-03-26 16:34:41 +02:00
95478a04ba final tuch 2025-03-26 15:37:23 +02:00
74f5670f46 updated and removed unecesary files 2025-03-25 14:56:11 +02:00
be11dbfc43 updated to download 2025-03-25 10:27:25 +02:00
8f7639640d api added 2025-03-19 16:49:10 +02:00