Menu
Bercail docs

Configuration

Everything is optional. For local development, copy .env.example to .env.

VariableDefaultDescription
ORIGINnonePublic URL of the app. Set it in production, forms fail without it behind a reverse proxy.
PORT3000Port the server listens on.
HOST0.0.0.0Address the server binds to.
DB_FILE_NAMEdata/db.sqlitePath to the SQLite database.
PUID / PGID10001Docker only. The uid/gid the server runs as. The data volume is chowned to match on startup.
DISK_STATS_PATH/System/Volumes/Data on macOS, / elsewhereFilesystem the disk gauge reports on.
WEATHER_LATnoneLatitude for the weather. A location picked in Settings takes precedence.
WEATHER_LONnoneLongitude for the weather. Must be set together with WEATHER_LAT.
WEATHER_LOCATION_NAMEHomeLabel shown for the location set through the variables above.
WEATHER_UNITScelsiuscelsius or fahrenheit.
OIDC_ISSUERnoneIssuer URL of your OpenID Connect provider. Setting it turns sign-in on.
OIDC_CLIENT_IDnoneClient ID. Required with OIDC_ISSUER.
OIDC_CLIENT_SECRETnoneClient secret. Required with OIDC_ISSUER.
OIDC_ALLOWED_EMAILSnoneComma-separated emails allowed to sign in. Unset lets in anyone the provider signs in.

This guide lives in the project repo: edit it there, and this page follows within a day.