default-basic-auth@file
This commit is contained in:
parent
29f5ff037a
commit
1bdce7d890
@ -125,13 +125,11 @@
|
|||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.traefik.rule=Host(`traefik.{{inventory_hostname}}`)
|
- traefik.http.routers.traefik.rule=Host(`traefik.{{inventory_hostname}}`)
|
||||||
- traefik.http.routers.traefik.entrypoints=https
|
- traefik.http.routers.traefik.entrypoints=https
|
||||||
- traefik.http.routers.traefik.middlewares=secHeaders@file,auth
|
- traefik.http.routers.traefik.middlewares=secHeaders@file,default-basic-auth@file
|
||||||
- traefik.http.routers.traefik.service=api@internal
|
- traefik.http.routers.traefik.service=api@internal
|
||||||
- traefik.http.routers.traefik.tls=true
|
- traefik.http.routers.traefik.tls=true
|
||||||
- traefik.http.routers.traefik.tls.certresolver=letsencrypt
|
- traefik.http.routers.traefik.tls.certresolver=letsencrypt
|
||||||
- traefik.http.middlewares.to-https.redirectscheme.scheme=https
|
- traefik.http.middlewares.to-https.redirectscheme.scheme=https
|
||||||
# echo $(htpasswd -nb user password) | sed -e s/\\$/\\$\\$/g
|
|
||||||
- traefik.http.middlewares.auth.basicauth.users=admin:$$apr1$$XLxGs/Ba$$3phZ1a2RtfExOp8x6NFjZ.
|
|
||||||
networks:
|
networks:
|
||||||
traefik:
|
traefik:
|
||||||
external: true
|
external: true
|
||||||
|
Loading…
Reference in New Issue
Block a user