added basic auth

This commit is contained in:
cventastic
2021-12-31 00:58:14 +01:00
parent 5dc84b92c8
commit 8a4bbb81c8

View File

@@ -27,6 +27,7 @@ services:
- "/var/run/docker.sock:/var/run/docker.sock:ro" - "/var/run/docker.sock:/var/run/docker.sock:ro"
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.middlewares.auth.basicauth.users=$AUTH_HTTP"
### WIREGUARD ### WIREGUARD
wireguard: wireguard:
@@ -143,6 +144,7 @@ services:
- "traefik.http.routers.pocket-mainnet.entrypoints=websecure" - "traefik.http.routers.pocket-mainnet.entrypoints=websecure"
- "traefik.http.routers.pocket-mainnet.tls.certresolver=myresolver" - "traefik.http.routers.pocket-mainnet.tls.certresolver=myresolver"
- "traefik.http.routers.pocket-mainnet.rule=Host(`$RELAYDOMAIN`)" - "traefik.http.routers.pocket-mainnet.rule=Host(`$RELAYDOMAIN`)"
- "traefik.http.routers.pocket-mainnet.middlewares=auth"
### VOLUMES ### VOLUMES
volumes: volumes: