Skip to content

Commit e2d1e36

Browse files
author
Xavier R (eXsoR)
authored
Update 2021-04-17-traefik-portainer-ssl.md (#92)
* Update 2021-04-17-traefik-portainer-ssl.md Added a note about replacing USER with your username and PASSWORD with your password for the Basic Auth command and changed the wording for were to place it in the docker-compose file. * Update 2021-04-17-traefik-portainer-ssl.md made it easier to read <USER> and <PASSWORD> to be replaced. * Update 2021-04-17-traefik-portainer-ssl.md corrected out put to output.
1 parent 9016436 commit e2d1e36

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_posts/2021-04-17-traefik-portainer-ssl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,13 @@ sudo apt install apache2-utils
7373
```
7474

7575
```bash
76-
echo $(htpasswd -nb USER PASSWORD) | sed -e s/\\$/\\$\\$/g
76+
echo $(htpasswd -nb <USER> <PASSWORD>) | sed -e s/\\$/\\$\\$/g
7777
```
78+
NOTE: Replace `<USER>` with your username and `<PASSWORD>` with your password to be hashed.
7879

79-
use this in your `docker-compose.yml` (`USER:BASIC_AUTH_PASSWORD`)
80+
Paste the output in your `docker-compose.yml` in line (`traefik.http.middlewares.traefik-auth.basicauth.users=<USER>:<HASHED-PASSWORD>`)
8081

82+
#### Sping up the container
8183
```bash
8284
docker-compose up -d
8385
```

0 commit comments

Comments
 (0)