# QR Code Manager - Production Environment Configuration
# Copy this file to .env and customize for your deployment

# Flask Configuration
FLASK_ENV=production
SECRET_KEY=ana_are_mere_multe-si-marunte_de-vanzare

# Admin Credentials (CHANGE THESE BEFORE DEPLOYMENT!)
ADMIN_USERNAME=ske087 # set your admin username
ADMIN_PASSWORD=Matei@123  # Set a strong password

# Application Domain (for URL shortener)
APP_DOMAIN=qr.moto-adv.com # 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
