🎚 Configuration¶
Typarr allows configuration via environment variables.
Note
Settings marked with 🔴 are explicitly required.
Settings marked with ⭕ are implicitly required, but have an overridable default.
- typarr.config.TYPARR_ACCENT_COLOUR = 'orange'¶
⭕ The CI accent colour family used across the UI.
Hint
Must match a family from the confirm design colours.
- typarr.config.TYPARR_ADMIN_GROUPS: set[str] = {'admins'}¶
⭕ Comma-separated list of OIDC groups whose members are Typarr administrators.
- typarr.config.TYPARR_AUTH_DISABLED = False¶
When set to
true, authentication is completely disabled. All requests are treated as an admin user without requiring OIDC. Intended for local development and demo environments only.
- typarr.config.TYPARR_BUCKET_DIR = PosixPath('/home/runner/work/typarr/typarr/data/buckets')¶
⭕ The directory where bucket git repos are stored.
Hint
By default this is a sub directory of the
TYPARR_DATA_DIR. In case you change it to be outside of theTYPARR_DATA_DIR, make sure you’ve a volume or a bind mount mounted on the path.
- typarr.config.TYPARR_DATA_DIR = PosixPath('/home/runner/work/typarr/typarr/data')¶
⭕ The root directory where all the user data is stored.
Important
To persist the Typarr data, either use a volume or a bind mount mounted on the path.
- typarr.config.TYPARR_DEFAULT_ROLE = 'none'¶
⭕ The default role for authenticated users on buckets without an access list. Must be one of
viewer,editor,committer, ornone. When set tonone, only global admins can access buckets without an ACL.
- typarr.config.TYPARR_FONT_DIR = PosixPath('/home/runner/work/typarr/typarr/data/fonts')¶
Optional directory for custom fonts.
Note
The font dir is passed as
--font-pathto thetypstCLI.Hint
By default this is a sub directory of the
TYPARR_DATA_DIR. In case you change it to be outside of theTYPARR_DATA_DIR, make sure you’ve a volume or a bind mount mounted on the path.
- typarr.config.TYPARR_LOG_LEVEL = 'INFO'¶
⭕ The log level (must match one of the Python logging levels).
- typarr.config.TYPARR_OIDC_CLIENT_ID = 'typarr'¶
⭕ The OIDC client ID.
- typarr.config.TYPARR_OIDC_CLIENT_SECRET = None¶
🔴 The OIDC client secret.
- typarr.config.TYPARR_OIDC_DISCOVERY_URL = None¶
🔴 The OIDC discovery URL (e.g.
https://sso.example.com/.well-known/openid-configuration).
- typarr.config.TYPARR_OIDC_GROUPS_CLAIM = 'groups'¶
⭕ The OIDC token claim that contains the user’s group memberships.
- typarr.config.TYPARR_PACKAGE_DIR = PosixPath('/home/runner/work/typarr/typarr/data/buckets/packages')¶
Optional directory for local Typst packages (
@local/name:version).Note
The package dir is passed as
--package-pathto thetypstCLI.Hint
When this directory is set to a sub-directory of the
TYPARR_BUCKET_DIR, the package directory can act like a bucket, and it can be edited in the Typarr web UI directly.If not set the a sub-directory of the
TYPARR_BUCKET_DIR, packages must be provided to the Docker container via one of the following Docker options:Via a dedicated volume (at runtime)
Via a dedicated bind mount (at runtime)
- typarr.config.TYPARR_PREVIEW_DEBOUNCE_MS = 100¶
⭕ Delay in milliseconds before the live preview recompiles after the user stops typing.
- typarr.config.TYPARR_ROOM_TTL = 300¶
⭕ Seconds to keep a collaboration room alive after the last client disconnects. Allows reconnecting clients (e.g. page refresh) to reuse the room.
- typarr.config.TYPARR_SAVE_DEBOUNCE_MS = 1000¶
⭕ Delay in milliseconds before auto-saving after the user stops typing.
Hint
Set to
0to disable auto-save.Important
The PDF is rendered from the (saved) file on disk, thus auto saving is recommended.
- typarr.config.TYPARR_SECRET_KEY = 'dabd9d0f2ee3b8940e34ae60864c6f715e9231467bccc1f80c397c35afddeeb7'¶
⭕ Secret key for signing session cookies.
Hint
If not set explicitly, a random token is generated on every startup. This is secure, but it will invalidate all existing sessions and forces users to log in again after a container restart.
- typarr.config.TYPARR_TRUSTED_PROXIES: list[str] = []¶
Comma-separated list of trusted proxy IP addresses (e.g.
127.0.0.1,10.0.0.0/8). When set,X-Forwarded-ForandX-Forwarded-Protoheaders from these proxies are respected. Use*to trust all sources. Leave empty when Typarr is not behind a reverse proxy.