100 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
DigiServer Developer
d0fbfe25b3 Add real-time upload progress tracking, mobile-optimized manage_group page with player status cards
Features:
- Real-time upload progress tracking with AJAX polling and session-based monitoring
- API endpoint /api/upload_progress/<session_id> for progress updates
- Video conversion progress tracking with background threads
- Mobile-responsive design for manage_group page
- Player status cards with feedback, playlist sync, and last activity
- Bootstrap Icons integration throughout UI
- Responsive layout (1/4 group info, 3/4 players on desktop)
- Video thumbnails with play icon, image thumbnails in media lists
- Bulk selection and delete for group media
- Enhanced logging for video conversion debugging
2025-11-03 16:09:18 +02:00
DigiServer Developer
52344a27a6 updated player sync 2025-09-09 17:05:33 +03:00
DigiServer Developer
9cb32da13c Resolve merge conflict in docker-compose.yml 2025-09-09 15:29:21 +03:00
DigiServer Developer
0f34a47fa9 updated to receive player message 2025-09-09 15:24:35 +03:00
DigiServer Developer
a5ef5749b1 upload feedbackto server 2025-09-08 14:04:13 +03: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
6cefce81ef Update: media file handling and playlist filename consistency using secure_filename 2025-08-25 13:13:12 +03:00
359e330758 media 2025-08-25 00:35:53 -04:00
9c124dbd7e fix: remove video conversion, use uploaded videos as-is for playlist (bugfix) 2025-08-25 00:33:40 -04:00
DigiServer Developer
7b24245ddb updated the upload functionality to handle large files and added a new image file 2025-08-21 16:27:16 +03:00
DigiServer Developer
58694ff3f4 Update all changes before rebase and push 2025-08-21 16:26:53 +03:00
7f5991f60d fix: use correct endpoint for group media delete in manage_group.html 2025-08-20 15:11:22 -04: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!
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