Update readme

This commit is contained in:
Thomas Lovén 2021-08-21 23:14:25 +02:00
parent f0709ed83b
commit 71a8127105

View File

@ -2,15 +2,20 @@
Configuration for traefik 2 and authelia Configuration for traefik 2 and authelia
## Environment variables
### Authelia preprocessor This setup uses two global environment variables: `PRIVATE_DOMAIN` and `PUBLIC_DOMAIN`. Those are two registered domain names I use for public and private services.
The authelia configuration contains some sensitive values, but authelia cannot read them from env variables like traefic can.
Instead, a special service - `authelia-config` runs before authelia start, and preprocesses the configuration file.
- Local file `./authelia/configuration.yaml` is mapped to `/data/input` in `authelia-config` There is also an `.env` file which defines a few more variables:
- Volume `authelia-config` is mapped to `/data/output` in `authelia-config` ```
- `authelia-config` runs `gomplate` on `/data/input` and saves to `data/output/configuration.yaml` AUTHELIA_JWT_SECRET=...
- Volume `authelia-config` is mapped to `/etc/authelia` in `authelia`, where it reads its configuration AUTHELIA_SESSION_SECRET=...
AUTHELIA_SESSION_DOMAIN=...
AUTHELIA_TOTP_ISSUER=...
TRAEFIK_CERTIFICATERESOLVERS_LE_ACME_EMAIL=...
```
The value of those depend on your setup and can be found in the Traefik and Authelia documentation.
## Lessons learned ## Lessons learned