From 1c9e4c60501951adb91ea9ae603cdedf0fd98ef3 Mon Sep 17 00:00:00 2001 From: Tom Moulard Date: Tue, 7 Dec 2021 10:04:05 +0100 Subject: [PATCH] doc: align docker configuration example notes in basicauth HTTP middleware --- docs/content/middlewares/http/basicauth.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/content/middlewares/http/basicauth.md b/docs/content/middlewares/http/basicauth.md index e207a238b..66a4d9916 100644 --- a/docs/content/middlewares/http/basicauth.md +++ b/docs/content/middlewares/http/basicauth.md @@ -91,9 +91,11 @@ The `users` option is an array of authorized users. Each user must be declared u ```yaml tab="Docker" # Declaring the user list # -# Note: all dollar signs in the hash need to be doubled for escaping. +# Note: when used in docker-compose.yml all dollar signs in the hash need to be doubled for escaping. # To create a user:password pair, the following command can be used: # echo $(htpasswd -nb user password) | sed -e s/\\$/\\$\\$/g +# +# Also note that dollar signs should NOT be doubled when they not evaluated (e.g. Ansible docker_container module). labels: - "traefik.http.middlewares.test-auth.basicauth.users=test:$$apr1$$H6uskkkW$$IgXLP6ewTrSuBkTrqE8wj/,test2:$$apr1$$d9hr9HBB$$4HxwgUir3HP4EsggP/QNo0" ```