- Added environment variable loading with python-dotenv - Fixed Docker session permissions by using /tmp directory - Updated .dockerignore to include .env file properly - Enhanced docker-compose.yml with env_file directive - Fixed Gunicorn configuration for Docker compatibility - Updated README.md with comprehensive deployment docs - Cleaned up debug logging from API routes - Added DOMAIN_SETUP.md for reverse proxy guidance - All production issues resolved and tested working - Application now accessible at qr.moto-adv.com
42 lines
1.2 KiB
Plaintext
Executable File
42 lines
1.2 KiB
Plaintext
Executable File
# 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
|