Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 46a4ff7

Browse files
authoredSep 14, 2023
Update README.md
improve authelia middleware notes
1 parent c0afa1a commit 46a4ff7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎examples/authelia/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ The do the following:
1212

1313
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).
1414
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'`
15-
3. Adjust your Traefik dynamic configuration and add authelia as middleaware. See [here](../traefik/fileConfig.yml) for an example configuration file.
16-
4. Finally, add authelia as middleware for each container to protect. I recommend using labels. Note that authelia should always be listed first.
15+
3. Finally, add authelia as middleware for each container to protect. I recommend using labels. Note that authelia should always be listed first.
1716

1817
````
1918
labels:
2019
- traefik.enable=true
21-
- traefik.http.routers.protected-service.middlewares=authelia@file,local-ipwhitelist@file
20+
- traefik.http.routers.protected-service.middlewares=authelia@docker,local-ipwhitelist@file
2221
````
2322

24-
Note: You can also use the docker provider `authelia@docker` instead of the file provider `authelia@file`.
23+
**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`.

0 commit comments

Comments
 (0)
Please sign in to comment.