Skip to main content


These are all the configuration options you can set via environment variables.

Append any of the following keys to your .env file, and run docker-compose up -d to apply them.


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>

Checking settings

To check if your config has been applied correctly, you can run the following command to output the full config:

docker-compose run --rm worker dump_config
# Or for kubernetes
kubectl exec -it deployment/authentik-worker -c authentik -- ak dump_config

PostgreSQL Settings

  • AUTHENTIK_POSTGRESQL__HOST: Hostname of your PostgreSQL Server
  • AUTHENTIK_POSTGRESQL__PORT: Database port, defaults to 5432
  • AUTHENTIK_POSTGRESQL__PASSWORD: Database password, defaults to the environment variable POSTGRES_PASSWORD
  • AUTHENTIK_POSTGRESQL__USE_PGBOUNCER: Adjust configuration to support connection to PgBouncer

Redis Settings

  • AUTHENTIK_REDIS__HOST: Hostname of your Redis Server
  • AUTHENTIK_REDIS__PORT: Redis port, defaults to 6379
  • AUTHENTIK_REDIS__PASSWORD: Password for your Redis Server
  • AUTHENTIK_REDIS__DB: Database, defaults to 0
  • 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 policies 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

Listen Setting

  • AUTHENTIK_LISTEN__HTTP: Listening address:port (e.g. for HTTP (Server and Proxy outpost)
  • AUTHENTIK_LISTEN__HTTPS: Listening address:port (e.g. for HTTPS (Server and Proxy outpost)
  • AUTHENTIK_LISTEN__LDAP: Listening address:port (e.g. for LDAP (LDAP outpost)
  • AUTHENTIK_LISTEN__LDAPS: Listening address:port (e.g. for LDAPS (LDAP outpost)
  • AUTHENTIK_LISTEN__METRICS: Listening address:port (e.g. for Prometheus metrics (All)
  • AUTHENTIK_LISTEN__DEBUG: Listening address:port (e.g. for Go Debugging metrics (All)

authentik Settings


Secret key used for cookie signing and unique user IDs, don't change this after the first install.


Log level for the server and worker containers. Possible values: debug, info, warning, error

Starting with 2021.12.3, you can also set the log level to trace. This has no affect on the core authentik server, but shows additional messages for the embedded outpost.


Setting the log level to trace will include sensitive details in logs, so it shouldn't be used in most cases.

Logs generated with trace should be treated with care as they can give others access to your instance, and can potentially include things like session cookies to authentik and other pages.

Defaults to info.

Which domain the session cookie should be set to. By default, the cookie is set to the domain authentik is accessed under.


Path to the GeoIP database. Defaults to /geoip/GeoLite2-City.mmdb. If the file is not found, authentik will skip GeoIP support.


Disable the inbuilt update-checker. Defaults to false.



    Enable error reporting. Defaults to false.

    Error reports are sent to, and are used for debugging and general feedback. Anonymous performance data is also sent.


    Sets the DSN for the Sentry API endpoint.

    When error reporting is enabled, the default Sentry DSN will allow the authentik developers to receive error reports and anonymous performance data, which is used for general feedback about authentik, and in some cases, may be used for debugging purposes.

    Users can create their own hosted Sentry account (or self-host Sentry) and opt to collect this data themselves.


    The environment tag associated with all data sent to Sentry. Defaults to customer.

    When error reporting has been enabled to aid in debugging issues, this should be set to a unique value, such as an e-mail address.


    Whether or not to send personal data, like usernames. Defaults to false.



    Default: localhost


    Default: 25


    Default: `` (Don't add quotation marks)


    Default: `` (Don't add quotation marks)


    Default: false


    Default: false


    Default: 10


    Default: authentik@localhost

    Email address authentik will send from, should have a correct @domain

    To change the sender's display name, use a format like Name <account@domain>.




    • %(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:


    Configure the automatic discovery of integrations. Defaults to true.

    By default, the following is discovered:

    • Kubernetes in-cluster config
    • Kubeconfig
    • Existence of a docker socket


Configure how authentik should show avatars for users. Following values can be set:

  • none: Disables per-user avatars and just shows a 1x1 pixel transparent picture

  • gravatar: Uses gravatar with the user's email address (default)

  • 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)

Starting with authentik 2022.8, you can also use an attribute path like attributes.something.avatar, which can be used in combination with the file field to allow users to upload custom avatars for themselves.



Requires authentik 2021.12.5

Enable the ability for users to change their name, defaults to true.



Requires authentik 2021.12.1

Enable the ability for users to change their Email address, defaults to true.



Requires authentik 2021.12.1

Enable the ability for users to change their Usernames, defaults to true.



Requires authentik 2021.12.1

When enabled, all the events caused by a user will be deleted upon the user's deletion. Defaults to true.



Requires authentik 2022.4.1

Configure the length of generated tokens. Defaults to 60.



Requires authentik 2022.4.2

Globally enable/disable impersonation. Defaults to true.


Requires authentik 2021.12.1

This option configures the footer links on the flow executor pages.

The setting can be used as follows:

AUTHENTIK_FOOTER_LINKS='[{"name": "Link Name","href":""}]'



Requires authentik 2023.1

Timeout in hours for LDAP synchronization tasks.

Defaults to 2.



Requires authentik 2022.7

Allows configuration of TLS Cliphers for LDAP connections used by LDAP sources. Setting applies to all sources.

Defaults to null.



Requires authentik 2022.9

Configure how many gunicorn worker processes should be started (see

If running in Kubernetes, the default value is set to 2 and should in most cases not be changed, as scaling can be done with multiple pods running the web server. Otherwise, authentik will use 1 worker for each 4 CPU cores + 1 as a value below 2 workers is not recommended.



Requires authentik 2022.9

Configure how many gunicorn threads a worker processes should have (see

Defaults to 4.

Custom python settings

To modify additional settings further than the options above allow, you can create a custom python file and mount it to /data/ This file will be loaded on startup by both the server and the worker. All default settings are here


Using these custom settings is not supported and can prevent your authentik instance from starting. Use with caution.