Commit 54adc979 authored by Sebastián Ramírez's avatar Sebastián Ramírez

Update Traefik HTTP basic auth to current (not-deprecated) configurations

parent efcd465f
......@@ -83,22 +83,16 @@ export ADMIN_PASSWORD=changethis
export HASHED_PASSWORD=$(openssl passwd -apr1 $ADMIN_PASSWORD)
```
* Set and export a single variable with the username and password in "`htpasswd`" format:
```bash
export USERNAME_PASSWORD=$ADMIN_USER:$HASHED_PASSWORD
```
* You can check the contents with:
```bash
echo $USERNAME_PASSWORD
echo $HASHED_PASSWORD
```
it will look like:
```
admin:$apr1$89eqM5Ro$CxaFELthUKV21DpI3UTQO.
$apr1$89eqM5Ro$CxaFELthUKV21DpI3UTQO.
```
* Create and export an environment variable `DOMAIN`, e.g.:
......
......@@ -136,7 +136,7 @@ services:
- traefik.redirectorservice.frontend.redirect.entryPoint=https
# Traefik service that listens to HTTPS
- traefik.webservice.frontend.entryPoints=https
- traefik.frontend.auth.basic=${USERNAME_PASSWORD}
- traefik.frontend.auth.basic.users=${ADMIN_PASSWORD}:${HASHED_PASSWORD}
networks:
- default
- net
......@@ -162,7 +162,7 @@ services:
- traefik.redirectorservice.frontend.redirect.entryPoint=https
# Traefik service that listens to HTTPS
- traefik.webservice.frontend.entryPoints=https
- traefik.frontend.auth.basic=${USERNAME_PASSWORD}
- traefik.frontend.auth.basic.users=${ADMIN_PASSWORD}:${HASHED_PASSWORD}
networks:
- default
- net
......@@ -230,7 +230,7 @@ services:
- traefik.redirectorservice.frontend.redirect.entryPoint=https
# Traefik service that listens to HTTPS
- traefik.webservice.frontend.entryPoints=https
- traefik.frontend.auth.basic=${USERNAME_PASSWORD}
- traefik.frontend.auth.basic.users=${ADMIN_PASSWORD}:${HASHED_PASSWORD}
networks:
- default
- net
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment