default-basic-auth@file

This commit is contained in:
olli 2024-05-29 14:07:25 +02:00
parent 34ec4dd03f
commit 8d274da2d6

View File

@ -31,14 +31,12 @@
- traefik.enable=true - traefik.enable=true
- traefik.http.routers.whoogle.rule=Host(`whoogle.{{inventory_hostname}}`) - traefik.http.routers.whoogle.rule=Host(`whoogle.{{inventory_hostname}}`)
- traefik.http.routers.whoogle.entrypoints=https - traefik.http.routers.whoogle.entrypoints=https
- traefik.http.routers.whoogle.middlewares=secHeaders@file - traefik.http.routers.whoogle.middlewares=secHeaders@file,default-basic-auth@file
- traefik.http.services.whoogle.loadbalancer.server.port=9000 - traefik.http.services.whoogle.loadbalancer.server.port=9000
- traefik.http.routers.whoogle.service=whoogle - traefik.http.routers.whoogle.service=whoogle
- traefik.http.routers.whoogle.tls=true - traefik.http.routers.whoogle.tls=true
- traefik.http.routers.whoogle.tls.certresolver=letsencrypt - traefik.http.routers.whoogle.tls.certresolver=letsencrypt
- traefik.http.middlewares.to-https.redirectscheme.scheme=https - traefik.http.middlewares.to-https.redirectscheme.scheme=https
# htpasswd -nb -B admin "PASSWORD" | cut -d ":" -f 2 | sed -e s/\\$/\\$\\$/g
- traefik.http.middlewares.auth.basicauth.users=admin:$$apr1$$M3diLTQ/$$HCIbrgRtFpUWqoQ9wJtXi1a
ports: ports:
- 5000:5000 - 5000:5000
networks: networks: