diff --git a/traefik/readme.md b/traefik/readme.md index fd06eca..31cb1bc 100644 --- a/traefik/readme.md +++ b/traefik/readme.md @@ -1,3 +1,5 @@ +# Traefik reverse proxy with automatic wildcard SSL from cloudflare + First create a docker network called "proxy" usig the following command: ``` docker network create proxy @@ -44,4 +46,20 @@ touch config.yml touch traefik.yml ``` -The contents to put inside those files are given here. Except for acme.json, which will be automatically generated. \ No newline at end of file +The contents to put inside those files are given here. Except for acme.json, which will be automatically generated. + +## How to generate a hashed password to put in the compose.yml file + +- First install apache2-utils +``` +sudo apt update +sudo apt install apache2-utils +``` +- Next generate your hashed password with the following command +``` +echo $(htpasswd -nB USER) | sed -e s/\\$/\\$\\$/g +``` + + - Replace USER with your username + - Enter a password when it prompts + - Copy paste the generated hashed password into the compose.yml file \ No newline at end of file