Default configuration
Below is the default configuration we deploy in our single server
setup. Use this as a blueprint and adapt it for your own use.
[server]
name = "site"
dir = "/tmp"
trace = false
[database]
type = "sqlite3"
name = "/storage/site.db"
migrate = true
[[database.opts]]
set = "foreign_keys"
val = "ON"
[[database.opts]]
set = "journal_mode"
val = "WAL"
[[database.opts]]
set = "synchronous"
val = "NORMAL"
[[database.opts]]
set = "busy_timeout"
val = "4000"
[admin.Server]
Port=8888
Cert="/storage/certs/cert.pem"
Pass="password"
TLS=false
Acme=false
Mount="admin"
TrustProxy="X-Forwarded-For"
Api="frontend"
[admin.Session]
Name="_crdl_"
Key="YSByYW5kb20gc2Vzc2lvbiBrZXkgdXNlZCBmb3IgdGhlIHNlc3Npb24gY29va2llCg"
Idletime=300
Lifetime=86400
Httponly=true
Persist=false
Secure=true
[admin.Storage.Buckets]
ThemeFiles="theme"
MediaFiles="media"
CacheFiles="cache"
CertFiles="certs"
[admin.Storage.FileSystem]
Base="/storage"
[frontend.Server]
Cert="cert.pem"
Acme=true
TLS=true
CertDir="/storage/certs"
[frontend.Storage.Buckets]
ThemeFiles="theme"
MediaFiles="media"
CacheFiles="cache"
CertFiles="certs"
[frontend.Storage.FileSystem]
Base="/storage"
[frontend.Proxy]
admin = "http://127.0.0.1:8888/admin"
api = "http://127.0.0.1:8888/api"
[frontend.Session]
Name="_crdlc_"
Key="YSByYW5kb20ga2V5IHVzZWQgZm9yIHNlY3VyZSBzaXRlIGNvb2tpZXMK"
Idletime=3600
Lifetime=86400
Httponly=true
Persist=false
Secure=true