Add HSTS headers for all pages
This commit is contained in:
parent
687199810c
commit
d79a88870a
10 changed files with 28 additions and 13 deletions
|
@ -3,18 +3,22 @@
|
|||
[services.nginx]
|
||||
image = "nginx"
|
||||
container_name = "korhonen.cc"
|
||||
volumes = ["/docker/korhonen.cc:/korhonen.cc:ro", "./nginx.conf:/etc/nginx/conf.d/default.conf"]
|
||||
volumes = [
|
||||
"/docker/korhonen.cc:/korhonen.cc:ro",
|
||||
"./nginx.conf:/etc/nginx/conf.d/default.conf",
|
||||
]
|
||||
networks = ["proxy"]
|
||||
restart = "unless-stopped"
|
||||
labels = [
|
||||
"traefik.enable=true",
|
||||
"traefik.docker.network=proxy",
|
||||
"traefik.http.routers.korhonen-redirect.entrypoints=http",
|
||||
"traefik.http.routers.korhonen-redirect.rule=Host(`korhonen.cc`)",
|
||||
"traefik.http.routers.korhonen-redirect.middlewares=http2https@file",
|
||||
"traefik.http.routers.korhonen.entrypoints=https",
|
||||
"traefik.http.routers.korhonen.middlewares=secHeaders@file",
|
||||
"traefik.http.routers.korhonen.rule=Host(`korhonen.cc`)",
|
||||
"traefik.http.routers.korhonen.service=korhonen",
|
||||
"traefik.docker.network=proxy",
|
||||
"traefik.http.services.korhonen.loadbalancer.server.port=80",
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue