2018-08-26 21:46:15 +00:00
|
|
|
# Configuration
|
|
|
|
|
|
|
|
Authelia is highly configurable thanks to a configuration file.
|
2019-12-05 20:52:04 +00:00
|
|
|
There is a documented template configuration, called
|
2020-01-01 20:39:59 +00:00
|
|
|
[config.template.yml](../config.template.yml), at the root of the
|
2019-12-05 20:52:04 +00:00
|
|
|
repository. All the details are documented there.
|
2018-08-26 21:46:15 +00:00
|
|
|
|
|
|
|
When running **Authelia**, you can specify your configuration file by passing
|
|
|
|
the file path as the first argument of **Authelia**.
|
|
|
|
|
2019-12-08 15:51:12 +00:00
|
|
|
$ authelia --config config.custom.yml
|
2018-08-26 21:46:15 +00:00
|
|
|
|
2020-02-01 13:17:39 +00:00
|
|
|
|
|
|
|
## Secrets
|
|
|
|
|
|
|
|
Configuration of Authelia requires some secrets or passwords. Please
|
|
|
|
note that the recommended way to set secrets in Authelia is to use
|
|
|
|
environment variables.
|
|
|
|
|
|
|
|
A secret in Authelia configuration could be set by providing the
|
|
|
|
environment variable prefixed by AUTHELIA_ and with name equals to
|
|
|
|
the capitalized path of the configuration key and with dots replaced
|
|
|
|
by underscores.
|
|
|
|
|
|
|
|
For instance the LDAP password is identified by the path
|
|
|
|
**authentication_backend.ldap.password**, so this password could
|
|
|
|
alternatively be set using the environment variable called
|
|
|
|
**AUTHELIA_AUTHENTICATION_BACKEND_LDAP_PASSWORD**.
|
|
|
|
|
|
|
|
If for some reason you prefer keeping the secrets in the configuration
|
|
|
|
file, be sure to apply the right permissions to the file in order to
|
|
|
|
prevent secret leaks if an another application gets compromised on your
|
|
|
|
server. The UNIX permissions should probably be something like 600.
|