final app for testing and deployment

This commit is contained in:
2025-07-16 20:45:12 +03:00
parent 729f64f411
commit e9a8f5e622
26 changed files with 1561 additions and 168 deletions

41
.env.production Normal file
View File

@@ -0,0 +1,41 @@
# QR Code Manager - Production Environment Configuration
# Copy this file to .env and customize for your deployment
# Flask Configuration
FLASK_ENV=production
SECRET_KEY=your-super-secret-key-change-this-in-production-please
# Admin Credentials (CHANGE THESE BEFORE DEPLOYMENT!)
ADMIN_USERNAME=admin # set your admin username
ADMIN_PASSWORD=admin-password-here # Set a strong password
# Application Domain (for URL shortener)
APP_DOMAIN=localhost:5000 # Change to your production domain, e.g., qr.[domain].com
# Database (Future use)
# DATABASE_URL=sqlite:///qr_manager.db
# SSL/TLS Configuration (Uncomment for HTTPS)
# SSL_KEYFILE=/path/to/your/private.key
# SSL_CERTFILE=/path/to/your/certificate.crt
# Logging Configuration
LOG_LEVEL=INFO
LOG_FILE=/app/logs/qr_manager.log
# Security Settings
SESSION_COOKIE_SECURE=false
SESSION_COOKIE_HTTPONLY=true
SESSION_COOKIE_SAMESITE=Lax
# Performance Settings
UPLOAD_MAX_SIZE=10485760 # 10MB in bytes
CACHE_TIMEOUT=3600 # 1 hour in seconds
# URL Shortener Settings
SHORT_URL_LENGTH=6
CUSTOM_DOMAIN_ENABLED=true # Enable custom domain for URL shortener and set APP_DOMAIN
# Health Check Settings
HEALTH_CHECK_ENABLED=true
HEALTH_CHECK_INTERVAL=30