42
config.example.toml
Normal file
42
config.example.toml
Normal file
@@ -0,0 +1,42 @@
|
||||
[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 = "<base64-encoded PEM private key>"
|
||||
# vapid_subject = "mailto:you@example.com"
|
||||
Reference in New Issue
Block a user