2020-02-29 07:43:59 +07:00
|
|
|
---
|
2022-06-15 14:51:47 +07:00
|
|
|
title: "Miscellaneous"
|
|
|
|
description: "Miscellaneous Configuration."
|
|
|
|
lead: "Authelia has a few config items that don't fit into their own area. This describes these options."
|
2022-06-28 12:27:14 +07:00
|
|
|
date: 2020-02-29T01:43:59+01:00
|
2022-06-15 14:51:47 +07:00
|
|
|
draft: false
|
|
|
|
images: []
|
|
|
|
menu:
|
|
|
|
configuration:
|
|
|
|
parent: "miscellaneous"
|
|
|
|
weight: 199100
|
|
|
|
toc: true
|
|
|
|
aliases:
|
|
|
|
- /docs/configuration/miscellaneous.html
|
|
|
|
- /docs/configuration/theme.html
|
2020-02-29 07:43:59 +07:00
|
|
|
---
|
|
|
|
|
2022-06-15 14:51:47 +07:00
|
|
|
## Configuration
|
2020-02-29 07:43:59 +07:00
|
|
|
|
2022-06-15 14:51:47 +07:00
|
|
|
```yaml
|
|
|
|
certificates_directory: /config/certs/
|
|
|
|
default_redirection_url: https://home.example.com:8080/
|
|
|
|
jwt_secret: v3ry_important_s3cr3t
|
|
|
|
theme: light
|
|
|
|
```
|
|
|
|
|
|
|
|
## Options
|
2021-01-04 17:28:55 +07:00
|
|
|
|
2022-06-15 14:51:47 +07:00
|
|
|
### certificates_directory
|
2021-01-04 17:28:55 +07:00
|
|
|
|
|
|
|
This option defines the location of additional certificates to load into the trust chain specifically for Authelia.
|
|
|
|
This currently affects both the SMTP notifier and the LDAP authentication backend. The certificates should all be in the
|
2021-04-11 18:25:03 +07:00
|
|
|
PEM format and end with the extension `.pem`, `.crt`, or `.cer`. You can either add the individual certificates public
|
|
|
|
key or the CA public key which signed them (don't add the private key).
|
2021-01-04 17:28:55 +07:00
|
|
|
|
2022-06-15 14:51:47 +07:00
|
|
|
### default_redirection_url
|
2020-02-29 07:43:59 +07:00
|
|
|
|
2022-06-15 14:51:47 +07:00
|
|
|
{{< confkey type="string" required="no" >}}
|
2021-04-11 18:25:03 +07:00
|
|
|
|
|
|
|
The default redirection URL is the URL where users are redirected when Authelia cannot detect the target URL where the
|
|
|
|
user was heading.
|
|
|
|
|
2022-02-17 09:26:17 +07:00
|
|
|
In a normal authentication workflow, a user tries to access a website and they get redirected to the sign-in portal in
|
2021-04-11 18:25:03 +07:00
|
|
|
order to authenticate. Since the user initially targeted a website, the portal knows where the user was heading and
|
2022-02-17 09:26:17 +07:00
|
|
|
can redirect them after the authentication process. However, when a user visits the sign in portal directly, the portal
|
2021-04-11 18:25:03 +07:00
|
|
|
considers the targeted website is the portal. In that case and if the default redirection URL is configured, the user is
|
|
|
|
redirected to that URL. If not defined, the user is not redirected after authentication.
|
2020-02-29 07:43:59 +07:00
|
|
|
|
2022-06-15 14:51:47 +07:00
|
|
|
### default_2fa_method
|
2022-04-18 06:58:24 +07:00
|
|
|
|
2022-06-15 14:51:47 +07:00
|
|
|
{{< confkey type="string" default="totp" required="no" >}}
|
2022-04-18 06:58:24 +07:00
|
|
|
|
|
|
|
Sets the default second factor method for users. This must be blank or one of the enabled methods. New users will by
|
|
|
|
default have this method selected for them. In addition if this was configured to `webauthn` and a user had the `totp`
|
|
|
|
method, and the `totp` method was disabled in the configuration, the users' method would automatically update to the
|
|
|
|
`webauthn` method.
|
|
|
|
|
|
|
|
Options are:
|
|
|
|
|
2022-06-15 14:51:47 +07:00
|
|
|
* totp
|
|
|
|
* webauthn
|
|
|
|
* mobile_push
|
2022-04-18 06:58:24 +07:00
|
|
|
|
|
|
|
```yaml
|
|
|
|
default_2fa_method: totp
|
2022-06-15 14:51:47 +07:00
|
|
|
```
|
|
|
|
|
|
|
|
### jwt_secret
|
|
|
|
|
|
|
|
{{< confkey type="string" required="yes" >}}
|
|
|
|
|
2022-06-21 16:45:08 +07:00
|
|
|
*__Important Note:__ This can also be defined using a [secret](../methods/secrets.md) which is __strongly recommended__
|
|
|
|
especially for containerized deployments.*
|
|
|
|
|
|
|
|
Defines the secret used to craft JWT tokens leveraged by the identity verification process. This can a random string.
|
|
|
|
It's strongly recommended this is a [Random Alphanumeric String](guides.md#generating-a-random-alphanumeric-string) with
|
|
|
|
64 or more characters.
|
2022-06-15 14:51:47 +07:00
|
|
|
|
|
|
|
### theme
|
|
|
|
|
|
|
|
{{< confkey type="string " default="light" required="no" >}}
|
|
|
|
|
|
|
|
There are currently 3 available themes for Authelia:
|
|
|
|
|
|
|
|
* light (default)
|
|
|
|
* dark
|
|
|
|
* grey
|
|
|
|
|
|
|
|
To enable automatic switching between themes, you can set `theme` to `auto`. The theme will be set to either `dark` or
|
|
|
|
`light` depending on the user's system preference which is determined using media queries. To read more technical
|
|
|
|
details about the media queries used, read the
|
|
|
|
[MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme).
|