init
Some checks failed
CI / ci (push) Failing after 1m48s

This commit is contained in:
2026-08-25 23:24:36 +02:00
commit 95739892de
466 changed files with 33918 additions and 0 deletions

42
config.example.toml Normal file
View 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"