# Application Settings # Django-style configuration file DEBUG = True APP_VERSION = "1.0.0" SECRET_KEY = "your-secret-key-here" ALLOWED_HOSTS = ["localhost", "127.0.0.1"] # Database Configuration DATABASE_URL = "postgresql://localhost:5432/myapp" DATABASE_POOL_SIZE = 10 DATABASE_MAX_OVERFLOW = 20 DATABASE_TIMEOUT = 30 # Cache Settings CACHE_BACKEND = "redis" CACHE_URL = "redis://localhost:6379/0" CACHE_TIMEOUT = 300 CACHE_KEY_PREFIX = "myapp" # Logging Configuration LOG_LEVEL = "DEBUG" LOG_FILE = "/var/log/myapp/app.log" LOG_FORMAT = "%(asctime)s - %(name)s - %(levelname)s - %(message)s" LOG_MAX_SIZE = 10485760 LOG_BACKUP_COUNT = 5 # API Settings API_RATE_LIMIT = 100 API_TIMEOUT = 30 API_MAX_RETRIES = 3 API_BACKOFF_FACTOR = 0.5 # Security Settings CORS_ALLOWED_ORIGINS = ["http://localhost:3000", "http://localhost:8080"] CSRF_TRUSTED_ORIGINS = ["http://localhost:3000"] SESSION_COOKIE_SECURE = False SESSION_COOKIE_HTTPONLY = True SESSION_EXPIRE_SECONDS = 3600 # Email Configuration EMAIL_BACKEND = "smtp" EMAIL_HOST = "smtp.example.com" EMAIL_PORT = 587 EMAIL_USE_TLS = True EMAIL_HOST_USER = "noreply@example.com" # Feature Flags FEATURE_NEW_DASHBOARD = True FEATURE_BETA_API = False FEATURE_ANALYTICS = True # Third Party Integrations STRIPE_API_KEY = "sk_test_xxxxxxxxxxxx" SENDGRID_API_KEY = "SG.xxxxxxxxxxxx" AWS_REGION = "us-east-1" AWS_S3_BUCKET = "myapp-uploads"