Server
Configuration for traefik 2 and authelia
Authelia preprocessor
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.yamlis mapped to/data/inputinauthelia-config - Volume
authelia-configis mapped to/data/outputinauthelia-config authelia-configrunsgomplateon/data/inputand saves todata/output/configuration.yaml- Volume
authelia-configis mapped to/etc/autheliainauthelia, where it reads its configuration
Lessons learned
- Authelia will ONLY work with https. Both the authelia url itself and the one being authenticated must be https.
- The authorization link should NOT end with
/#/or/%2F/or anything, just/. Otherwise it will not redirect you back after authorizing.
Description
Languages
YAML
100%