Environment variables¶
This page mirrors the runtime settings defined in src/gatekeeper/config.py.
Application¶
Variable |
Default |
Notes |
|---|---|---|
|
|
Branding/display name |
|
|
Public auth/backend URL |
|
|
Frontend URL |
|
required |
32+ chars |
Database¶
Variable |
Default |
Notes |
|---|---|---|
|
|
SQLite or PostgreSQL DSN |
Email¶
Variable |
Default |
Notes |
|---|---|---|
|
|
|
|
|
Display name |
|
empty |
SES only |
|
empty |
SES only |
|
|
SES only |
|
empty |
SES sender |
|
empty |
SMTP only |
|
|
SMTP only |
|
empty |
SMTP only |
|
empty |
SMTP only |
|
empty |
SMTP sender |
Auth and user policy¶
Variable |
Default |
Notes |
|---|---|---|
|
empty |
Comma-separated trusted domains |
|
|
OTP lifetime |
|
|
Session lifetime |
|
|
Max OTP send attempts per email+IP within the auth failure window |
|
|
Max failed OTP verify attempts per email+IP within the auth failure window |
|
|
Rolling window used for OTP throttling and automatic IP bans |
|
|
Failed auth attempts from one IP before an automatic temporary ban |
|
|
Automatic IP ban duration |
|
unset |
Use |
|
|
Behavior for unregistered apps: |
WebAuthn¶
Variable |
Default |
Notes |
|---|---|---|
|
|
Must match public auth domain |
|
|
Friendly display name |
|
|
Full origin |
OAuth¶
Variable |
Default |
Notes |
|---|---|---|
|
empty |
Enables Google when paired with secret |
|
empty |
Enables Google when paired with ID |
|
empty |
Enables GitHub when paired with secret |
|
empty |
Enables GitHub when paired with ID |
Server¶
Variable |
Default |
Notes |
|---|---|---|
|
|
Bind address |
|
|
Listen port |
|
|
Development convenience; disable in production |
|
|
Controls |
|
|
Comma-separated proxy IPs or CIDRs allowed to supply forwarded client IP headers |
Derived behavior¶
ACCEPTED_DOMAINSis split into a normalized lowercase list on startup.GOOGLE_CLIENT_IDandGOOGLE_CLIENT_SECRETtogether enable Google sign-in.GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRETtogether enable GitHub sign-in.EMAIL_PROVIDERdetermines whether Gatekeeper usesSES_FROM_EMAILorSMTP_FROM_EMAIL.PUBLIC_API_DOCS=falsemakes/redirect to/healthinstead of the Swagger UI.X-Forwarded-ForandX-Real-IPare only trusted when the immediate peer IP matchesTRUSTED_PROXY_IPS.
For setup examples and deployment recommendations, see Configuration.