Files
mikebase/config.example.toml
T
Ganonmaster 08fd6cea70 Add HTTP Basic Auth
All write endpoints and the manage
routes are gated behind HTTP Basic Auth middleware; credentials are
configured via [auth] in config.toml or APP__AUTH__USERNAME /
APP__AUTH__PASSWORD environment variables.
2026-04-28 03:23:57 +02:00

30 lines
895 B
TOML

# mikebase configuration file
# All values can be overridden by environment variables using the APP__ prefix.
# Example: APP__DATABASE__URL=sqlite://mikebase.db
[database]
# SQLite example:
url = "sqlite://mikebase.db"
# PostgreSQL example:
# url = "postgresql://user:password@localhost/mikebase"
[server]
host = "0.0.0.0"
port = 3000
[auth]
# Credentials for the /manage UI and emote write endpoints (POST/PUT/DELETE).
# Can also be set via APP__AUTH__USERNAME and APP__AUTH__PASSWORD env vars.
# If omitted, all protected routes return 401.
username = "admin"
password = "changeme"
[s3]
endpoint = "https://s3.eu-central-1.wasabisys.com"
region = "eu-central-1"
bucket = "open3dlab-emoji"
access_key = "YOUR_ACCESS_KEY"
secret_key = "YOUR_SECRET_KEY"
# Base URL used to construct public image URLs in API responses.
public_url = "https://s3.eu-central-1.wasabisys.com/open3dlab-emoji"