Add HSTS headers for all pages

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

View file

@ -10,13 +10,14 @@ ports = ["3000:3000", "22:22"]
volumes = ["/docker/gitea:/data", "/etc/localtime:/etc/localtime:ro"]
labels = [
"traefik.enable=true",
"traefik.docker.network=proxy",
"traefik.http.routers.gitea-redirect.entrypoints=http",
"traefik.http.routers.gitea-redirect.rule=Host(`git.korhonen.cc`)",
"traefik.http.routers.gitea-redirect.middlewares=http2https@file",
"traefik.http.routers.gitea.entrypoints=https",
"traefik.http.routers.gitea.middlewares=secHeaders@file",
"traefik.http.routers.gitea.rule=Host(`git.korhonen.cc`)",
"traefik.http.routers.gitea.service=gitea",
"traefik.docker.network=proxy",
"traefik.http.services.gitea.loadbalancer.server.port=3000",
]