Skip to content
Sentinel Configuration

Sentinel Configuration

Configuration File Paths

Sentinel supports two levels of configuration: system-level (applies to all users on the machine) and user-level (per user, overrides system-level).

System-level:

OSPath
Linux/etc/franklyn/config.toml
macOS/Library/Application Support/at.htl-leonding.franklyn/config.toml
Windows%PROGRAMDATA%\htl-leonding\franklyn\config.toml

User-level:

OSPath
Linux~/.config/franklyn/config.toml
macOS~/Library/Application Support/at.htl-leonding.franklyn/config.toml
Windows%LOCALAPPDATA%\htl-leonding\franklyn\config

You can also set the FRANKLYN_DATA_DIR environment variable to point to a custom directory; Sentinel will read $FRANKLYN_DATA_DIR/config.toml as the system config instead of the default OS path.

The user-level config directory and an empty file are created automatically on first franklyn config set or franklyn config edit. System-level paths can’t be managed by the franklyn program.

Configuration Keys

KeyDefaultDescription
api_urlfranklyn.htl-leonding.ac.at/apiFranklyn API endpoint
oidc_urlhttps://auth.htl-leonding.ac.atOpenID Connect server
oidc_realmfranklynOIDC realm
oidc_client_idsentinelOIDC client ID
oidc_scopesopenidOIDC scopes (space-separated)

Load Order

Later entries override earlier ones:

  1. Embedded defaults (compiled into the binary)
  2. System-level config file
  3. User-level config file
  4. Environment variables

Environment Variable Overrides

Set environment variables at startup for a systemd service, Docker container, or any other managed environment to enforce configuration without touching user files.

All config keys map to FRANKLYN_<KEY> in uppercase:

FRANKLYN_API_URL=yourserver.example.com/api
FRANKLYN_OIDC_URL=https://auth.yourserver.example.com
FRANKLYN_OIDC_REALM=yourrealm
FRANKLYN_OIDC_CLIENT_ID=yourclient
FRANKLYN_OIDC_SCOPES=openid

Notes

  • Configuration is loaded once at startup. Changes to config files or environment variables require a restart.
  • Config files must be valid TOML.
Last updated on • J.H.F.