2020-02-29 00:43:59 +00:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
title: Miscellaneous
|
|
|
|
parent: Configuration
|
2020-05-15 23:41:42 +00:00
|
|
|
nav_order: 3
|
2020-02-29 00:43:59 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# Miscellaneous
|
|
|
|
|
|
|
|
Here are the main customizable options in Authelia.
|
|
|
|
|
|
|
|
## Host & Port
|
2020-03-03 07:18:25 +00:00
|
|
|
|
2020-04-11 04:46:07 +00:00
|
|
|
```yaml
|
|
|
|
host: 0.0.0.0
|
|
|
|
port: 9091
|
|
|
|
```
|
2020-02-29 00:43:59 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
### host
|
|
|
|
<div markdown="1">
|
|
|
|
type: string
|
|
|
|
{: .label .label-config .label-purple }
|
|
|
|
default: 0.0.0.0
|
|
|
|
{: .label .label-config .label-blue }
|
|
|
|
required: no
|
|
|
|
{: .label .label-config .label-green }
|
|
|
|
</div>
|
|
|
|
|
|
|
|
Defines the address to listen on. See also [port](#port). Should typically be `0.0.0.0` or `127.0.0.1`, the former for
|
|
|
|
containerized environments and the later for daemonized environments like init.d and systemd.
|
|
|
|
|
2020-12-29 19:33:57 +00:00
|
|
|
Note: If utilising an IPv6 literal address it must be enclosed by square brackets and quoted:
|
2020-12-16 00:31:39 +00:00
|
|
|
|
|
|
|
```yaml
|
|
|
|
host: "[fd00:1111:2222:3333::1]"
|
|
|
|
```
|
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
### port
|
|
|
|
<div markdown="1">
|
|
|
|
type: integer
|
|
|
|
{: .label .label-config .label-purple }
|
|
|
|
default: 9091
|
|
|
|
{: .label .label-config .label-blue }
|
|
|
|
required: no
|
|
|
|
{: .label .label-config .label-green }
|
|
|
|
</div>
|
2020-03-03 07:18:25 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
Defines the port to listen on. See also [host](#host).
|
2020-03-03 07:18:25 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
## TLS
|
|
|
|
|
|
|
|
Authelia's port typically listens for plain unencrypted connections. This is by design as most environments allow to
|
|
|
|
security on lower areas of the OSI model. However it required, if you specify both of the tls options the port will
|
|
|
|
listen for TLS connections.
|
2020-03-03 07:18:25 +00:00
|
|
|
|
2020-04-11 04:46:07 +00:00
|
|
|
```yaml
|
2020-06-17 06:25:35 +00:00
|
|
|
tls_key: /config/ssl/key.pem
|
|
|
|
tls_cert: /config/ssl/cert.pem
|
2020-04-11 04:46:07 +00:00
|
|
|
```
|
2020-03-03 07:18:25 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
### tls_key
|
|
|
|
<div markdown="1">
|
|
|
|
type: string (path)
|
|
|
|
{: .label .label-config .label-purple }
|
|
|
|
default: ""
|
|
|
|
{: .label .label-config .label-blue }
|
|
|
|
required: situational
|
|
|
|
{: .label .label-config .label-yellow }
|
|
|
|
</div>
|
|
|
|
|
|
|
|
The path to the private key for TLS connections. Must be in DER base64/PEM format.
|
|
|
|
|
|
|
|
### tls_cert
|
|
|
|
<div markdown="1">
|
|
|
|
type: string (path)
|
|
|
|
{: .label .label-config .label-purple }
|
|
|
|
default: ""
|
|
|
|
{: .label .label-config .label-blue }
|
|
|
|
required: situational
|
|
|
|
{: .label .label-config .label-yellow }
|
|
|
|
</div>
|
|
|
|
|
|
|
|
The path to the public certificate for TLS connections. Must be in DER base64/PEM format.
|
2021-01-04 10:28:55 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
## certificates_directory
|
2021-01-04 10:28:55 +00: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 11:25:03 +00: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 10:28:55 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
```yaml
|
|
|
|
certificates_directory: /config/certs/
|
|
|
|
```
|
2021-01-04 10:28:55 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
## Logging
|
2020-02-29 00:43:59 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
### log_level
|
|
|
|
<div markdown="1">
|
|
|
|
type: string
|
|
|
|
{: .label .label-config .label-purple }
|
|
|
|
default: info
|
|
|
|
{: .label .label-config .label-blue }
|
|
|
|
required: no
|
|
|
|
{: .label .label-config .label-green }
|
|
|
|
</div>
|
2020-02-29 00:43:59 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
Defines the level of logs used by Authelia. This level can be set to `trace`, `debug` or `info`. When setting log_level
|
|
|
|
to `trace`, you will generate a large amount of log entries and expose the `/debug/vars` and `/debug/pprof/` endpoints
|
|
|
|
which should not be enabled in production.
|
2020-02-29 00:43:59 +00:00
|
|
|
|
2020-04-11 04:46:07 +00:00
|
|
|
```yaml
|
|
|
|
log_level: debug
|
|
|
|
```
|
2020-03-09 19:57:53 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
### log_format
|
|
|
|
<div markdown="1">
|
|
|
|
type: string
|
|
|
|
{: .label .label-config .label-purple }
|
2021-04-12 03:21:19 +00:00
|
|
|
default: text
|
2021-04-11 11:25:03 +00:00
|
|
|
{: .label .label-config .label-blue }
|
|
|
|
required: no
|
|
|
|
{: .label .label-config .label-green }
|
|
|
|
</div>
|
2020-11-24 23:46:41 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
Defines the format of the logs written by Authelia. This format can be set to `json` or `text`.
|
2020-11-24 23:46:41 +00:00
|
|
|
|
|
|
|
```yaml
|
|
|
|
log_format: json
|
|
|
|
```
|
|
|
|
|
|
|
|
#### JSON format
|
|
|
|
```
|
|
|
|
{"level":"info","msg":"Logging severity set to info","time":"2020-01-01T00:00:00+11:00"}
|
|
|
|
{"level":"info","msg":"Authelia is listening for non-TLS connections on 0.0.0.0:9091","time":"2020-01-01T00:00:00+11:00"}
|
|
|
|
```
|
|
|
|
#### Text format
|
|
|
|
```
|
|
|
|
time="2020-01-01T00:00:00+11:00" level=info msg="Logging severity set to info"
|
|
|
|
time="2020-01-01T00:00:00+11:00" level=info msg="Authelia is listening for non-TLS connections on 0.0.0.0:9091"
|
|
|
|
```
|
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
### log_file_path
|
|
|
|
<div markdown="1">
|
|
|
|
type: string (path)
|
|
|
|
{: .label .label-config .label-purple }
|
|
|
|
default: ""
|
|
|
|
{: .label .label-config .label-blue }
|
|
|
|
required: no
|
|
|
|
{: .label .label-config .label-green }
|
|
|
|
</div>
|
2020-03-09 19:57:53 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
Logs can be stored in a file when file path is provided. Otherwise logs are written to standard output. When setting the
|
|
|
|
log_level to `debug` or `trace` this will generate large amount of log entries. Administrators will need to ensure that
|
|
|
|
they rotate and/or truncate the logs over time to prevent significant long-term disk usage.
|
2020-03-09 19:57:53 +00:00
|
|
|
|
2020-04-11 04:46:07 +00:00
|
|
|
```yaml
|
2020-06-17 06:25:35 +00:00
|
|
|
log_file_path: /config/authelia.log
|
2020-04-11 04:46:07 +00:00
|
|
|
```
|
2020-02-29 00:43:59 +00:00
|
|
|
|
2021-05-31 04:02:54 +00:00
|
|
|
### log_keep_stdout
|
|
|
|
<div markdown="1">
|
|
|
|
type: boolean
|
|
|
|
{: .label .label-config .label-purple }
|
|
|
|
default: false
|
|
|
|
{: .label .label-config .label-blue }
|
|
|
|
required: no
|
|
|
|
{: .label .label-config .label-green }
|
|
|
|
</div>
|
|
|
|
|
|
|
|
Overrides the behaviour to redirect logging only to the `log_file_path`. If set to `true` logs will be written to both
|
|
|
|
standard output, and the defined logging location.
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
log_keep_stdout: true
|
|
|
|
```
|
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
## jwt_secret
|
|
|
|
<div markdown="1">
|
|
|
|
type: string
|
|
|
|
{: .label .label-config .label-purple }
|
|
|
|
default: ""
|
|
|
|
{: .label .label-config .label-blue }
|
|
|
|
required: yes
|
|
|
|
{: .label .label-config .label-red }
|
|
|
|
</div>
|
2020-02-29 00:43:59 +00:00
|
|
|
|
|
|
|
Defines the secret used to craft JWT tokens leveraged by the identity
|
2020-04-23 01:11:32 +00:00
|
|
|
verification process. This can also be defined using a [secret](./secrets.md).
|
2020-02-29 00:43:59 +00:00
|
|
|
|
2020-04-11 04:46:07 +00:00
|
|
|
```yaml
|
|
|
|
jwt_secret: v3ry_important_s3cr3t
|
|
|
|
```
|
2020-02-29 00:43:59 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
## default_redirection_url
|
|
|
|
<div markdown="1">
|
|
|
|
type: string
|
|
|
|
{: .label .label-config .label-purple }
|
|
|
|
default: ""
|
|
|
|
{: .label .label-config .label-blue }
|
|
|
|
required: no
|
|
|
|
{: .label .label-config .label-green }
|
|
|
|
</div>
|
|
|
|
|
|
|
|
The default redirection URL is the URL where users are redirected when Authelia cannot detect the target URL where the
|
|
|
|
user was heading.
|
|
|
|
|
|
|
|
In a normal authentication workflow, a user tries to access a website and she gets redirected to the sign-in portal in
|
|
|
|
order to authenticate. Since the user initially targeted a website, the portal knows where the user was heading and
|
|
|
|
can redirect her after the authentication process. However, when a user visits the sign in portal directly, the portal
|
|
|
|
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 00:43:59 +00:00
|
|
|
|
2021-04-11 11:25:03 +00:00
|
|
|
```yaml
|
|
|
|
default_redirection_url: https://home.example.com:8080/
|
|
|
|
```
|