Update traefik/readme.md
This commit is contained in:
+19
-1
@@ -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.
|
||||
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
|
||||
Reference in New Issue
Block a user