30 lines
523 B
TOML
30 lines
523 B
TOML
[server]
|
|
bind_address = "127.0.0.1:8080"
|
|
workers = 4
|
|
keep_alive = 60
|
|
client_timeout = 5000
|
|
client_shutdown = 5000
|
|
|
|
[database]
|
|
url = "form_data.db"
|
|
pool_size = 5
|
|
connection_timeout = 30
|
|
|
|
[security]
|
|
rate_limit_requests = 100
|
|
rate_limit_interval = 60
|
|
allowed_origins = ["http://localhost:5173"]
|
|
jwt_secret = "your-secret-key"
|
|
jwt_expiration = 3600
|
|
|
|
[logging]
|
|
level = "info"
|
|
format = "json"
|
|
file = "logs/app.log"
|
|
max_size = 10485760 # 10MB
|
|
max_files = 5
|
|
|
|
[monitoring]
|
|
sentry_dsn = ""
|
|
enable_metrics = true
|
|
metrics_port = 9090 |