🚀 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!
68 lines
2.6 KiB
HTML
68 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Player Fullscreen</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<style>
|
|
body {
|
|
background-color: black;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
}
|
|
.content-item {
|
|
display: none;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
object-fit: cover;
|
|
}
|
|
.content-item.active {
|
|
display: block;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="content">
|
|
{% for item in content %}
|
|
{% if item.file_name.endswith('.mp4') %}
|
|
<video class="content-item" data-duration="{{ item.duration }}" controls>
|
|
<source src="{{ url_for('static', filename='uploads/' ~ item.file_name) }}" type="video/mp4">
|
|
Your browser does not support the video tag.
|
|
</video>
|
|
{% elif item.file_name.endswith('.pdf') %}
|
|
<object data="{{ url_for('static', filename='uploads/' ~ item.file_name) }}" type="application/pdf" class="content-item" data-duration="{{ item.duration }}"></object>
|
|
{% else %}
|
|
<img src="{{ url_for('static', filename='uploads/' ~ item.file_name) }}" class="content-item" data-duration="{{ item.duration }}" alt="{{ item.file_name }}">
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
const items = document.querySelectorAll('.content-item');
|
|
let currentIndex = 0;
|
|
|
|
function showNextItem() {
|
|
items.forEach(item => item.classList.remove('active'));
|
|
const currentItem = items[currentIndex];
|
|
currentItem.classList.add('active');
|
|
|
|
const duration = parseInt(currentItem.getAttribute('data-duration'), 10) * 1000;
|
|
if (currentItem.tagName === 'VIDEO') {
|
|
currentItem.play();
|
|
currentItem.onended = () => {
|
|
currentIndex = (currentIndex + 1) % items.length;
|
|
showNextItem();
|
|
};
|
|
} else {
|
|
setTimeout(() => {
|
|
currentIndex = (currentIndex + 1) % items.length;
|
|
showNextItem();
|
|
}, duration);
|
|
}
|
|
}
|
|
|
|
showNextItem();
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |