documentation

This commit is contained in:
olli 2023-05-09 10:57:14 +02:00
parent e66a26d31c
commit 34ab8b2790

View File

@ -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: