Added forcing HSTS

This commit is contained in:
WilliamMiceli
2018-09-21 21:45:55 -04:00
parent ea5b5000c4
commit 12c98ea7e1

View File

@@ -23,6 +23,9 @@ services:
traefik.frontend.rule: Host:${TRAEFIK_HOST} traefik.frontend.rule: Host:${TRAEFIK_HOST}
traefik.port: "80" traefik.port: "80"
traefik.frontend.entryPoints: http,https traefik.frontend.entryPoints: http,https
traefik.frontend.headers.forceSTSHeader: true
traefik.frontend.headers.STSPreload: true
traefik.frontend.headers.STSSeconds: 15552000
traefik.frontend.redirect.entryPoint: https traefik.frontend.redirect.entryPoint: https
traefik.frontend.redirect.permanent: true traefik.frontend.redirect.permanent: true
{{- else}} {{- else}}