documentation
This commit is contained in:
parent
e66a26d31c
commit
34ab8b2790
@ -75,6 +75,7 @@ services:
|
||||
|
||||
dabo-web:
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
# DOMAIN
|
||||
- traefik.http.routers.dabo-YOURINSTANCENAME.rule=Host(`YOURDOMAIN`)
|
||||
- traefik.http.routers.dabo-YOURINSTANCENAME.entrypoints=https
|
||||
@ -85,9 +86,9 @@ services:
|
||||
# cert via letsencrypt
|
||||
- traefik.http.routers.dabo-YOURINSTANCENAME.tls.certresolver=letsencrypt
|
||||
# activate secHeaders@file & basic auth
|
||||
- traefik.http.routers.dabo-YOURINSTANCENAME.middlewares=secHeaders@file,basicauth
|
||||
- traefik.http.routers.dabo-YOURINSTANCENAME.middlewares=secHeaders@file,dabo-YOURINSTANCENAME-basicauth
|
||||
# Generate crypted password string with: echo $(htpasswd -nB YOURUSER) | sed -e s/\\$/\\$\\$/g
|
||||
- traefik.http.middlewares.dabo-YOURINSTANCENAME.basicauth.users=YOURUSER:YOUR-GENERATED-CRYPTED-PASSWORD-STRING
|
||||
- traefik.http.middlewares.dabo-YOURINSTANCENAME-basicauth.basicauth.users=YOURUSER:YOUR-GENERATED-CRYPTED-PASSWORD-STRING
|
||||
# Traefik network
|
||||
- traefik.docker.network=traefik
|
||||
networks:
|
||||
|
Loading…
Reference in New Issue
Block a user