2021-03-12 15:43:31 +00:00
|
|
|
---
|
2021-05-05 17:52:07 +00:00
|
|
|
title: Configuration
|
2021-03-12 15:43:31 +00:00
|
|
|
---
|
|
|
|
|
2021-05-05 17:52:07 +00:00
|
|
|
These are all the configuration options you can set via environment variables.
|
2021-03-12 15:43:31 +00:00
|
|
|
|
|
|
|
Append any of the following keys to your `.env` file, and run `docker-compose up -d` to apply them.
|
|
|
|
|
2021-05-08 15:14:14 +00:00
|
|
|
:::info
|
|
|
|
The double-underscores are intentional, as all these settings are translated to yaml internally, a double-underscore indicates the next level.
|
|
|
|
:::
|
|
|
|
|
|
|
|
All of these variables can be set to values, but you can also use a URI-like format to load values from other places:
|
|
|
|
|
|
|
|
- `env://<name>` Loads the value from the environment variable `<name>`. Fallback can be optionally set like `env://<name>?<default>`
|
|
|
|
- `file://<name>` Loads the value from the file `<name>`. Fallback can be optionally set like `file://<name>?<default>`
|
|
|
|
|
|
|
|
## PostgreSQL Settings
|
|
|
|
|
|
|
|
- `AUTHENTIK_POSTGRESQL__HOST`: Hostname of your PostgreSQL Server
|
|
|
|
- `AUTHENTIK_POSTGRESQL__NAME`: Database name
|
|
|
|
- `AUTHENTIK_POSTGRESQL__USER`: Database user
|
2021-08-12 00:24:36 +00:00
|
|
|
- `AUTHENTIK_POSTGRESQL__PORT`: Database port, defaults to 5432
|
2021-05-08 15:14:14 +00:00
|
|
|
- `AUTHENTIK_POSTGRESQL__PASSWORD`: Database password, defaults to the environment variable `POSTGRES_PASSWORD`
|
|
|
|
|
2021-09-02 07:41:31 +00:00
|
|
|
### PostgreSQL Backup Settings
|
|
|
|
|
|
|
|
Optionally enable automated database backups to S3 or S3-compatible storages.
|
|
|
|
|
|
|
|
- `AUTHENTIK_POSTGRESQL__S3_BACKUP__ACCESS_KEY`: S3 Access Key
|
|
|
|
- `AUTHENTIK_POSTGRESQL__S3_BACKUP__SECRET_KEY`: S3 Secret Key
|
|
|
|
- `AUTHENTIK_POSTGRESQL__S3_BACKUP__BUCKET`: S3 Bucket
|
|
|
|
- `AUTHENTIK_POSTGRESQL__S3_BACKUP__REGION`: S3 Region, defaults to `eu-central-1`
|
|
|
|
- `AUTHENTIK_POSTGRESQL__S3_BACKUP__LOCATION`: Relative Location of the files to the bucket. Defaults to the root of the bucket.
|
|
|
|
|
|
|
|
To use an S3-compatible storage, set the following settings.
|
|
|
|
|
|
|
|
- `AUTHENTIK_POSTGRESQL__S3_BACKUP__HOST`: URL to the Service, for example `https://play.min.io`
|
|
|
|
- `AUTHENTIK_POSTGRESQL__S3_BACKUP__INSECURE_SKIP_VERIFY`: Set to `true` to disable SSL Certificate verification.
|
|
|
|
|
2021-05-08 15:14:14 +00:00
|
|
|
## Redis Settings
|
|
|
|
|
|
|
|
- `AUTHENTIK_REDIS__HOST`: Hostname of your Redis Server
|
|
|
|
- `AUTHENTIK_REDIS__PASSWORD`: Password for your Redis Server
|
|
|
|
- `AUTHENTIK_REDIS__CACHE_DB`: Database for caching, defaults to 0
|
|
|
|
- `AUTHENTIK_REDIS__MESSAGE_QUEUE_DB`: Database for the message queue, defaults to 1
|
|
|
|
- `AUTHENTIK_REDIS__WS_DB`: Database for websocket connections, defaults to 2
|
2021-08-07 20:12:22 +00:00
|
|
|
- `AUTHENTIK_REDIS__OUTPOST_SESSION_DB`: Database for sessions for the embedded outpost, defaults to 3
|
2021-06-21 08:18:49 +00:00
|
|
|
- `AUTHENTIK_REDIS__CACHE_TIMEOUT`: Timeout for cached data until it expires in seconds, defaults to 300
|
|
|
|
- `AUTHENTIK_REDIS__CACHE_TIMEOUT_FLOWS`: Timeout for cached flow plans until they expire in seconds, defaults to 300
|
|
|
|
- `AUTHENTIK_REDIS__CACHE_TIMEOUT_POLICIES`: Timeout for cached polices until they expire in seconds, defaults to 300
|
|
|
|
- `AUTHENTIK_REDIS__CACHE_TIMEOUT_REPUTATION`: Timeout for cached reputation until they expire in seconds, defaults to 300
|
2021-05-08 15:14:14 +00:00
|
|
|
|
|
|
|
## authentik Settings
|
|
|
|
|
2021-09-05 17:58:42 +00:00
|
|
|
### AUTHENTIK_SECRET_KEY
|
|
|
|
|
|
|
|
Secret key used for cookie singing and unique user IDs, don't change this after the first install.
|
|
|
|
|
2021-05-08 15:14:14 +00:00
|
|
|
### AUTHENTIK_LOG_LEVEL
|
2021-03-12 15:43:31 +00:00
|
|
|
|
|
|
|
Log level for the server and worker containers. Possible values: debug, info, warning, error
|
|
|
|
Defaults to `info`.
|
|
|
|
|
2021-05-08 15:14:14 +00:00
|
|
|
### AUTHENTIK_ERROR_REPORTING
|
2021-03-12 15:43:31 +00:00
|
|
|
|
2021-04-22 20:31:24 +00:00
|
|
|
- `AUTHENTIK_ERROR_REPORTING__ENABLED`
|
2021-03-12 15:43:31 +00:00
|
|
|
|
|
|
|
Enable error reporting. Defaults to `false`.
|
|
|
|
|
|
|
|
Error reports are sent to https://sentry.beryju.org, and are used for debugging and general feedback. Anonymous performance data is also sent.
|
|
|
|
|
2021-04-22 20:31:24 +00:00
|
|
|
- `AUTHENTIK_ERROR_REPORTING__ENVIRONMENT`
|
2021-03-12 15:43:31 +00:00
|
|
|
|
|
|
|
Unique environment that is attached to your error reports, should be set to your email address for example. Defaults to `customer`.
|
|
|
|
|
2021-04-22 20:31:24 +00:00
|
|
|
- `AUTHENTIK_ERROR_REPORTING__SEND_PII`
|
2021-03-12 15:43:31 +00:00
|
|
|
|
|
|
|
Whether or not to send personal data, like usernames. Defaults to `false`.
|
|
|
|
|
2021-05-08 15:14:14 +00:00
|
|
|
### AUTHENTIK_EMAIL
|
2021-03-12 15:43:31 +00:00
|
|
|
|
2021-04-22 20:31:24 +00:00
|
|
|
- `AUTHENTIK_EMAIL__HOST`
|
2021-03-12 15:43:31 +00:00
|
|
|
|
|
|
|
Default: `localhost`
|
|
|
|
|
2021-04-22 20:31:24 +00:00
|
|
|
- `AUTHENTIK_EMAIL__PORT`
|
2021-03-12 15:43:31 +00:00
|
|
|
|
|
|
|
Default: `25`
|
|
|
|
|
2021-04-22 20:31:24 +00:00
|
|
|
- `AUTHENTIK_EMAIL__USERNAME`
|
2021-03-12 15:43:31 +00:00
|
|
|
|
|
|
|
Default: `""`
|
|
|
|
|
2021-04-22 20:31:24 +00:00
|
|
|
- `AUTHENTIK_EMAIL__PASSWORD`
|
2021-03-12 15:43:31 +00:00
|
|
|
|
|
|
|
Default: `""`
|
|
|
|
|
2021-04-22 20:31:24 +00:00
|
|
|
- `AUTHENTIK_EMAIL__USE_TLS`
|
2021-03-12 15:43:31 +00:00
|
|
|
|
|
|
|
Default: `false`
|
|
|
|
|
2021-04-22 20:31:24 +00:00
|
|
|
- `AUTHENTIK_EMAIL__USE_SSL`
|
2021-03-12 15:43:31 +00:00
|
|
|
|
|
|
|
Default: `false`
|
|
|
|
|
2021-04-22 20:31:24 +00:00
|
|
|
- `AUTHENTIK_EMAIL__TIMEOUT`
|
2021-03-12 15:43:31 +00:00
|
|
|
|
|
|
|
Default: `10`
|
|
|
|
|
2021-04-22 20:31:24 +00:00
|
|
|
- `AUTHENTIK_EMAIL__FROM`
|
2021-03-12 15:43:31 +00:00
|
|
|
|
|
|
|
Default: `authentik@localhost`
|
|
|
|
|
|
|
|
Email address authentik will send from, should have a correct @domain
|
|
|
|
|
2021-05-08 15:14:14 +00:00
|
|
|
### AUTHENTIK_OUTPOSTS
|
2021-03-12 15:43:31 +00:00
|
|
|
|
2021-04-22 20:31:24 +00:00
|
|
|
- `AUTHENTIK_OUTPOSTS__DOCKER_IMAGE_BASE`
|
2021-03-12 15:43:31 +00:00
|
|
|
|
2021-06-08 13:32:23 +00:00
|
|
|
Placeholders:
|
|
|
|
- `%(type)s`: Outpost type; proxy, ldap, etc
|
|
|
|
- `%(version)s`: Current version; 2021.4.1
|
|
|
|
- `%(build_hash)s`: Build hash if you're running a beta version
|
|
|
|
|
|
|
|
Placeholder for outpost docker images. Default: `ghcr.io/goauthentik/%(type)s:%(version)s`.
|
2021-03-12 15:43:31 +00:00
|
|
|
|
2021-06-22 10:24:23 +00:00
|
|
|
### AUTHENTIK_AVATARS
|
2021-03-12 15:43:31 +00:00
|
|
|
|
2021-06-22 10:24:23 +00:00
|
|
|
Configure how authentik should show avatars for users. Following values can be set:
|
2021-03-12 15:43:31 +00:00
|
|
|
|
2021-06-22 10:24:23 +00:00
|
|
|
- `none`: Disables per-user avatars and just shows a 1x1 pixel transparent picture
|
|
|
|
- `gravatar`: Uses gravatar with the user's email address
|
|
|
|
- Any URL: If you want to use images hosted on another server, you can set any URL.
|
|
|
|
|
|
|
|
Additionally, these placeholders can be used:
|
|
|
|
|
|
|
|
- `%(username)s`: The user's username
|
|
|
|
- `%(mail_hash)s`: The email address, md5 hashed
|
|
|
|
- `%(upn)s`: The user's UPN, if set (otherwise an empty string)
|