[server]
bind_address = "127.0.0.1:3000"
request_timeout_seconds = 30
shutdown_grace_seconds = 10
body_limit_bytes = 1048576
max_in_flight_requests = 256
[rate_limit]
requests = 60
window_seconds = 60
max_clients = 10000
[cors]
origins = []
allowed_methods = ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]
allowed_headers = ["content-type", "authorization"]
exposed_headers = ["x-request-id", "retry-after"]
allow_credentials = false
max_age_seconds = 600
[docs]
enabled = true
[logging]
filter = "info"
stdout_enabled = true
file_dir = "logs"
[api]
versioning_enabled = true
[uploads]
enabled = false
storage = "local"
directory = "storage/uploads"
max_files = 4
max_file_bytes = 524288
max_total_bytes = 524288
allowed_types = ["image/png", "image/jpeg", "application/pdf"]
[uploads.s3]
bucket = ""
region = "us-east-1"
endpoint = ""
prefix = "uploads"
force_path_style = false
allow_http = false