Add HSTS headers for all pages
This commit is contained in:
parent
687199810c
commit
d79a88870a
10 changed files with 28 additions and 13 deletions
|
@ -19,15 +19,16 @@ volumes = [
|
|||
]
|
||||
labels = [
|
||||
"traefik.enable=true",
|
||||
"traefik.docker.network=proxy",
|
||||
"traefik.http.routers.redirect.entrypoints=http",
|
||||
"traefik.http.routers.redirect.rule=Host(`traefik.korhonen.cc`)",
|
||||
"traefik.http.routers.redirect.middlewares=http2https@file",
|
||||
"traefik.http.routers.dashboard.entrypoints=https",
|
||||
"traefik.http.routers.dashboard.middlewares=secHeaders@file",
|
||||
"traefik.http.routers.dashboard.rule=Host(`traefik.korhonen.cc`)",
|
||||
"traefik.http.middlewares.dashboard-auth.basicauth.usersfile=/dashboard-users",
|
||||
"traefik.http.routers.dashboard.middlewares=dashboard-auth",
|
||||
"traefik.http.routers.dashboard.service=api@internal",
|
||||
"traefik.docker.network=proxy",
|
||||
]
|
||||
|
||||
[services.fail2ban]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue