From 46a4ff7b13fb76303d1cc81055d940661837f07b Mon Sep 17 00:00:00 2001 From: LRVT <21357789+l4rm4nd@users.noreply.github.com> Date: Thu, 14 Sep 2023 16:24:36 +0200 Subject: [PATCH] Update README.md improve authelia middleware notes --- examples/authelia/README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/authelia/README.md b/examples/authelia/README.md index aed8544..2b7d719 100644 --- a/examples/authelia/README.md +++ b/examples/authelia/README.md @@ -12,13 +12,12 @@ The do the following: 1. Adjust the configuration.yml to your needs. Especially replace exmaple.com with your own domain name. Add all your to be protected subdomains to the access_control area. Replace all secrets with your secure strings (may use `openssl rand -base64 35` to generate a secure, random string). 2. Adjust users_database.yml and add your user accounts. You can create new password hashes via `docker run --rm authelia/authelia:latest authelia crypto hash generate argon2 --password 'ExamplePassword'` -3. Adjust your Traefik dynamic configuration and add authelia as middleaware. See [here](../traefik/fileConfig.yml) for an example configuration file. -4. Finally, add authelia as middleware for each container to protect. I recommend using labels. Note that authelia should always be listed first. +3. Finally, add authelia as middleware for each container to protect. I recommend using labels. Note that authelia should always be listed first. ```` labels: - traefik.enable=true - - traefik.http.routers.protected-service.middlewares=authelia@file,local-ipwhitelist@file + - traefik.http.routers.protected-service.middlewares=authelia@docker,local-ipwhitelist@file ```` -Note: You can also use the docker provider `authelia@docker` instead of the file provider `authelia@file`. +**Note**: You can also add Authelia as file provider middleware. See [here](../traefik/fileConfig.yml) for an example Traefik dynamic configuration file. Afterwards, you can use the file provider `authelia@file` instead or besides of `authelia@docker`.