66 lines
1.2 KiB
TOML
66 lines
1.2 KiB
TOML
![]() |
# Production Environment Configuration
|
||
|
# Settings optimized for production deployment with security and performance
|
||
|
|
||
|
[server]
|
||
|
environment = "production"
|
||
|
log_level = "info"
|
||
|
protocol = "https"
|
||
|
host = "0.0.0.0"
|
||
|
port = 443
|
||
|
|
||
|
[app]
|
||
|
debug = false
|
||
|
enable_metrics = true
|
||
|
enable_health_check = true
|
||
|
enable_compression = true
|
||
|
|
||
|
[cors]
|
||
|
allowed_origins = ["https://yourdomain.com", "https://www.yourdomain.com"]
|
||
|
|
||
|
[session]
|
||
|
secret = "@encrypted_session_secret"
|
||
|
cookie_secure = true
|
||
|
|
||
|
[database]
|
||
|
url = "postgresql://username:password@localhost:5432/rustelo_prod"
|
||
|
max_connections = 20
|
||
|
min_connections = 5
|
||
|
|
||
|
[logging]
|
||
|
level = "info"
|
||
|
file_path = "logs/prod_app.log"
|
||
|
enable_console = false
|
||
|
enable_file = true
|
||
|
|
||
|
[features]
|
||
|
auth = true
|
||
|
tls = true
|
||
|
content_db = true
|
||
|
two_factor_auth = true
|
||
|
|
||
|
[build]
|
||
|
features = ["auth", "content-db", "crypto", "email", "metrics", "tls"]
|
||
|
|
||
|
[security]
|
||
|
rate_limit_requests = 1000
|
||
|
rate_limit_window = 60
|
||
|
bcrypt_cost = 14
|
||
|
|
||
|
[tls]
|
||
|
enabled = true
|
||
|
cert_path = "certs/production.crt"
|
||
|
key_path = "certs/production.key"
|
||
|
|
||
|
[metrics]
|
||
|
enabled = true
|
||
|
collection_interval = 60
|
||
|
|
||
|
[auth]
|
||
|
max_login_attempts = 3
|
||
|
lockout_duration = 1800
|
||
|
session_timeout = 7200
|
||
|
|
||
|
[email]
|
||
|
enabled = true
|
||
|
default_provider = "smtp"
|