Updated redirect to SSL from HTTP
This commit is contained in:
@@ -21,6 +21,10 @@ services:
|
|||||||
traefik.frontend.rule: Host:${TRAEFIK_HOST}
|
traefik.frontend.rule: Host:${TRAEFIK_HOST}
|
||||||
traefik.port: "2368"
|
traefik.port: "2368"
|
||||||
traefik.frontend.entryPoints: http,https
|
traefik.frontend.entryPoints: http,https
|
||||||
|
traefik.frontend.headers.forceSTSHeader: true
|
||||||
|
traefik.frontend.headers.SSLRedirect: 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}}
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ services:
|
|||||||
traefik.port: "80"
|
traefik.port: "80"
|
||||||
traefik.frontend.entryPoints: http,https
|
traefik.frontend.entryPoints: http,https
|
||||||
traefik.frontend.headers.forceSTSHeader: true
|
traefik.frontend.headers.forceSTSHeader: true
|
||||||
|
traefik.frontend.headers.SSLRedirect: true
|
||||||
traefik.frontend.headers.STSPreload: true
|
traefik.frontend.headers.STSPreload: true
|
||||||
traefik.frontend.headers.STSSeconds: 15552000
|
traefik.frontend.headers.STSSeconds: 15552000
|
||||||
traefik.frontend.redirect.entryPoint: https
|
traefik.frontend.redirect.entryPoint: https
|
||||||
|
|||||||
Reference in New Issue
Block a user