Skip to content
VariableDescriptionDefault
PORTHTTP server port (binds on 0.0.0.0)80
LOG_LEVELLogging level (error, warn, info, debug, trace)info
PROJECT_ROOTRoot directory for Git repositories/srv/git
DB_PATHPath to the SQLite database filetwig.db
API_KEYSecret required to generate one-time signup invites. If unset or empty, a random key is generated and logged at startup.Generated per process
SESSION_KEYSecret used to sign/encrypt web session cookies. Set a stable value to keep sessions valid across restarts.Random per process; sessions do not survive restart
RESET_DBSet to exactly true to delete the database file at startup and seed a development admin / admin account with automatic local login.false
CACHE_CONTROLCache-Control header value for static assetspublic, max-age=31536000, immutable
TEST_USERUsername allowed to access the endpoint test page and manage session PINs. Set to true as a shortcut for admin. If unset, the test page is disabled.unset
ADMIN_USERUsername allowed to inspect database tables and values in Tree → Data. If unset, database browsing is disabled.unset
SENTRY_DSNSentry project DSN. If unset, Sentry instrumentation is disabledunset
SENTRY_TRACES_SAMPLE_RATEFraction of transactions sent to Sentry (0.0–1.0)1.0

For local development, mise.toml overrides several values, including PORT=8080, PROJECT_ROOT=tests/git/srv, RESET_DB=true, and TEST_USER=admin.