From f6f52258928cfc141ef2a1f9d0a357217c62b2db Mon Sep 17 00:00:00 2001 From: Cris Mathew Date: Wed, 28 Feb 2024 17:26:35 +0300 Subject: [PATCH] Update traefik/readme.md --- traefik/readme.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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