26 Commits

Author SHA1 Message Date
DigiServer Developer
d5456c0ec4 Add comprehensive optimization proposal for DigiServer
Analysis:
- Docker image size: 3.53GB (needs optimization)
- Monolithic app.py: 1,051 lines (needs splitting)
- No caching strategy (performance bottleneck)
- Synchronous video processing (blocks requests)

Optimization Proposal includes:
1. Multi-stage Docker build (3.53GB → 800MB, 77% reduction)
2. Blueprint architecture (split monolithic app.py)
3. Redis caching (50-80% faster page loads)
4. Celery for background tasks (async video processing)
5. Database optimization (indexes, query optimization)
6. nginx reverse proxy (3-5x faster static files)
7. Security hardening (rate limiting, CSRF, validation)
8. Monitoring & health checks
9. Type hints & code quality improvements
10. Environment-based configuration

Expected results:
- Page load: 2-3s → 0.5-1s (70% faster)
- API response: 100-200ms → 20-50ms (75% faster)
- Concurrent users: 10-20 → 100-200 (10x scalability)
- Docker image: 77% smaller
- Code maintainability: Significantly improved

Implementation roadmap: 4 phases over 2-3 weeks
Priority: Critical → High → Medium

Changed port mapping: 8880:5000 → 80:5000 for standard HTTP access
2025-11-12 09:06:28 +02:00
3cc703a7d1 add saved files 2025-09-04 13:14:10 -04:00
DigiServer Developer
505c8e268c Final working version: playlist API, persistent data, and deployment fixes 2025-08-25 16:40:17 +03:00
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!
2025-08-05 18:04:02 -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
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
68cc47882c updated versions and players 2025-06-29 16:48:15 +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
7eb8f088f4 updated docke file 2025-05-18 23:24:17 +03:00
0056ace8a5 updated requirements 2025-05-16 15:51:42 +03:00
ebb9bf4583 updated upload functions 2025-05-15 11:23:49 +03:00
78fe1da113 running on raspberi at work 2025-05-14 16:26:53 +03:00
3ecdce84f0 final 2025-03-26 16:34:41 +02:00
8f7639640d api added 2025-03-19 16:49:10 +02:00
Ske087
fe165305fc updated something 2025-02-15 21:27:28 +02:00
Ske087
aa2ba61be8 updated with save 2025-02-09 18:56:23 +02:00
Ske087
6b9c3e6847 updated to folders 2025-02-01 22:38:22 +02:00
Ske087
64b8f5392a finisshing 2025-01-25 20:34:27 +02:00
Ske087
fda07c701d completed 2025-01-25 20:03:47 +02:00
70a0065b98 updated to video upload 2025-01-23 16:31:57 +02:00
4b8d075bfe image created 2025-01-22 16:33:00 +02:00