Doc: improve basic auth middleware httpasswd example

This commit is contained in:
Fabian 2021-03-22 15:26:03 +01:00 committed by GitHub
parent 6fcea91d1f
commit 06fc2c505f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ The BasicAuth middleware restricts access to your services to known users.
# #
# Note: when used in docker-compose.yml 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: # To create user:password pair, it's possible to use this command:
# echo $(htpasswd -nb user password) | sed -e s/\\$/\\$\\$/g # echo $(htpasswd -nB user) | sed -e s/\\$/\\$\\$/g
# #
# Also note that dollar signs should NOT be doubled when they not evaluated (e.g. Ansible docker_container module). # Also note that dollar signs should NOT be doubled when they not evaluated (e.g. Ansible docker_container module).
labels: labels: