; ============================================================================= ; Sample INI Configuration File ; Application settings organized by section. ; ============================================================================= [app] name = My Application version = 2.4.1 environment = production debug = false timezone = UTC locale = en_US secret_key = change-me-in-production base_url = https://app.example.com [database] driver = mysql host = db.internal.example.com port = 3306 name = myapp_production username = app_user password = ${DB_PASSWORD} charset = utf8mb4 pool_min = 5 pool_max = 20 timeout = 30 [database.read_replica] host = db-replica.internal.example.com port = 3306 [cache] driver = redis host = cache.internal.example.com port = 6379 password = database = 0 prefix = myapp_ ttl = 3600 serializer = json [logging] level = warning driver = file path = /var/log/myapp/app.log max_size = 50M max_files = 14 format = json include_stacktrace = true [logging.sentry] enabled = true dsn = https://key@sentry.example.com/42 sample_rate = 0.1 [mail] driver = smtp host = smtp.example.com port = 587 username = noreply@example.com password = ${MAIL_PASSWORD} encryption = tls from_name = My Application from_email = noreply@example.com [storage] driver = s3 bucket = myapp-uploads region = us-east-1 cdn_url = https://cdn.example.com max_upload_size = 25M [security] cors_origins = https://app.example.com,https://admin.example.com rate_limit = 100 rate_limit_window = 60 session_lifetime = 7200 csrf_enabled = true hsts_max_age = 31536000