This section details common configuration elements within the Authelia configuration. This section is mainly used as a reference for other sections as necessary.
Duration Notation Format
We have implemented a string/integer based notation for configuration options that take a duration of time. This section describes the implementation of this. You can use this implementation in various areas of configuration such as:
The way this format works is you can either configure an integer or a string in the specific configuration areas. If you
supply an integer, it is considered a representation of seconds. If you supply a string, it parses the string in blocks
of quantities and units (number followed by a unit letter). For example
5h indicates a quantity of 5 units of
While you can use multiple of these blocks in combination, ee suggest keeping it simple and use a single value.
|Desired Value||Configuration Examples|
|1 hour and 30 minutes|
We have several sections of configuration that utilize regular expressions. It’s recommended to validate your regex
manually either via tools like Regex 101 (ensure you pick the
Golang option) or some other
It’s important when attempting to utilize a backslash that it’s utilized correctly. The YAML parser is likely to parse this as you trying to use YAML escape syntax instead of regex escape syntax. To avoid this use single quotes instead of no quotes or double quotes.
Various sections of the configuration use a uniform configuration section called TLS. Notably LDAP and SMTP. This section documents the usage.
server_name overrides the name checked against the certificate in the verification process. Useful if you
require to use a direct IP address for the address of the backend service but want to verify a specific SNI.
skip_verify completely negates validating the certificate of the backend service. This is not recommended,
instead you should tweak the
server_name option, and the global option
minimum_version controls the minimum TLS version Authelia will use when opening TLS connections.
The possible values are
TLS1.0. Anything other than
are very old and deprecated. You should avoid using these and upgrade your backend service instead of decreasing