Update traefik/readme.md

This commit is contained in:
2024-02-28 17:26:35 +03:00
parent 74f5b72245
commit f6f5225892
+18
View File
@@ -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
@@ -45,3 +47,19 @@ touch traefik.yml
```
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