Files
k-mood/config.example.toml
2026-08-25 23:50:28 +02:00

43 lines
861 B
TOML

[server]
host = "0.0.0.0"
port = 3000
max_body_size = 10485760
# spa_dir = "spa/dist"
[server.cors]
allow_any_origin = true
# allowed_origins = ["https://app.example.com"]
[entry]
max_content_length = 65536
max_photos = 10
max_voice_memos = 5
max_activities_per_entry = 50
[storage]
data_dir = "./data"
# database_url = "sqlite://./data/k-mood.db"
[storage.media]
backend = "local"
media_dir = "media"
# [storage.media]
# backend = "s3"
# bucket = "k-mood-media"
# region = "us-east-1"
# endpoint = "http://localhost:9000"
# access_key = "minioadmin"
# secret_key = "minioadmin"
[auth]
jwt_secret = "change-me-in-production"
access_token_ttl_seconds = 900
refresh_token_ttl_seconds = 2592000
allow_registration = true
# [push]
# enabled = true
# vapid_private_key = "<base64url-encoded 32-byte EC private key>"
# vapid_subject = "mailto:you@example.com"