- Add HTTPSConfig model for managing HTTPS settings - Add admin routes for HTTPS configuration management - Add beautiful admin template for HTTPS configuration - Add database migration for https_config table - Add CLI utility for HTTPS management - Add setup script for automated configuration - Add Caddy configuration generator and manager - Add comprehensive documentation (3 guides) - Add HTTPS Configuration card to admin dashboard - Implement input validation and security features - Add admin-only access control with audit trail - Add real-time configuration preview - Integrate with existing Caddy reverse proxy Features: - Enable/disable HTTPS from web interface - Configure domain, hostname, IP address, port - Automatic SSL certificate management via Let's Encrypt - Real-time Caddyfile generation and reload - Full audit trail with admin username and timestamps - Support for HTTPS and HTTP fallback access points - Beautiful, mobile-responsive UI Modified files: - app/models/__init__.py (added HTTPSConfig import) - app/blueprints/admin.py (added HTTPS routes) - app/templates/admin/admin.html (added HTTPS card) - docker-compose.yml (added Caddyfile mount and admin port) New files: - app/models/https_config.py - app/blueprints/https_config.html - app/utils/caddy_manager.py - https_manager.py - setup_https.sh - migrations/add_https_config_table.py - migrations/add_email_to_https_config.py - HTTPS_STATUS.txt - Documentation files (3 markdown guides)
50 lines
1.2 KiB
Python
Executable File
50 lines
1.2 KiB
Python
Executable File
"""Utils package for digiserver-v2."""
|
|
from app.utils.logger import log_action, log_info, log_warning, log_error, get_recent_logs
|
|
from app.utils.uploads import (
|
|
save_uploaded_file,
|
|
process_video_file,
|
|
process_pdf_file,
|
|
get_upload_progress,
|
|
set_upload_progress,
|
|
clear_upload_progress,
|
|
get_file_size,
|
|
delete_file
|
|
)
|
|
from app.utils.group_player_management import (
|
|
get_player_status_info,
|
|
get_group_statistics,
|
|
assign_player_to_group,
|
|
bulk_assign_players_to_group,
|
|
get_online_players_count,
|
|
get_players_by_status
|
|
)
|
|
from app.utils.pptx_converter import pptx_to_pdf_libreoffice, validate_pptx_file
|
|
|
|
__all__ = [
|
|
# Logger
|
|
'log_action',
|
|
'log_info',
|
|
'log_warning',
|
|
'log_error',
|
|
'get_recent_logs',
|
|
# Uploads
|
|
'save_uploaded_file',
|
|
'process_video_file',
|
|
'process_pdf_file',
|
|
'get_upload_progress',
|
|
'set_upload_progress',
|
|
'clear_upload_progress',
|
|
'get_file_size',
|
|
'delete_file',
|
|
# Group/Player Management
|
|
'get_player_status_info',
|
|
'get_group_statistics',
|
|
'assign_player_to_group',
|
|
'bulk_assign_players_to_group',
|
|
'get_online_players_count',
|
|
'get_players_by_status',
|
|
# PPTX Converter
|
|
'pptx_to_pdf_libreoffice',
|
|
'validate_pptx_file',
|
|
]
|