From 7b1a2565466d1d29b8ad5756dbb971f2756953b5 Mon Sep 17 00:00:00 2001 From: Vitaliy Potapov Date: Wed, 1 Jul 2020 13:28:04 +0300 Subject: [PATCH] Update basicauth.md --- docs/content/middlewares/basicauth.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/content/middlewares/basicauth.md b/docs/content/middlewares/basicauth.md index 7d5b8ebc9..83d2d5b43 100644 --- a/docs/content/middlewares/basicauth.md +++ b/docs/content/middlewares/basicauth.md @@ -12,9 +12,11 @@ The BasicAuth middleware is a quick way to restrict access to your services to k ```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 user:password pair, it's possible to use this command: # 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" ```