Add HSTS headers for all pages

This commit is contained in:
Marko Korhonen 2022-03-24 10:26:23 +02:00
parent 687199810c
commit d79a88870a
10 changed files with 28 additions and 13 deletions

View file

@ -14,13 +14,14 @@ cap_add = ["NET_ADMIN"]
restart = "unless-stopped"
labels = [
"traefik.enable=true",
"traefik.docker.network=proxy",
"traefik.http.routers.pihole-redirect.entrypoints=http",
"traefik.http.routers.pihole-redirect.rule=Host(`pihole.korhonen.cc`)",
"traefik.http.routers.pihole-redirect.middlewares=http2https@file",
"traefik.http.routers.pihole.entrypoints=https",
"traefik.http.routers.pihole.middlewares=secHeaders@file",
"traefik.http.routers.pihole.rule=Host(`pihole.korhonen.cc`)",
"traefik.http.routers.pihole.service=pihole",
"traefik.docker.network=proxy",
"traefik.http.services.pihole.loadbalancer.server.port=80",
]