# Web server configuration
#
# This configuration file demonstrates web server settings that can be
# validated and loaded using premortem before the server starts.

# Server settings
host = "127.0.0.1"
port = 3000

# TLS configuration (optional)
# tls_cert = "/path/to/cert.pem"
# tls_key = "/path/to/key.pem"

# Request limits
max_body_size_mb = 10
request_timeout_secs = 30

# Connection pool settings
max_connections = 1000
idle_timeout_secs = 60

# API settings
api_prefix = "/api/v1"
cors_allowed_origins = ["http://localhost:3000", "http://localhost:8080"]

# Rate limiting
rate_limit_requests = 100
rate_limit_window_secs = 60

# Logging
log_level = "info"
log_format = "json"
