Testing separation of SSL and non-SSL

This is to attempt at not having the path prefix added twice on the initial connection to the site
This commit is contained in:
WilliamMiceli
2019-01-16 18:43:12 -05:00
parent 08b414fe22
commit adbe17efc1

View File

@@ -18,16 +18,19 @@ services:
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
traefik.enable: true
### Start Web Segment
traefik.web.frontend.entryPoints: http,https
traefik.web.frontend.headers.forceSTSHeader: true
traefik.web.frontend.headers.referrerPolicy: no-referrer # Security enhancement (Prevents leaking of referer information)
traefik.web.frontend.headers.SSLRedirect: true
traefik.web.frontend.headers.STSPreload: true
traefik.web.frontend.headers.STSSeconds: 15552000
traefik.web.frontend.rule: "Host:${TRAEFIK_HOSTNAME}; AddPrefix:/guacamole"
traefik.web.port: "8080"
### End Web Segment
### Start HTTP Segment
traefik.http.frontend.entryPoints: http
traefik.http.frontend.headers.SSLRedirect: true
### End HTTP Segment
### Start HTTPS Segment
traefik.https.frontend.entryPoints: https
traefik.https.frontend.headers.forceSTSHeader: true
traefik.https.frontend.headers.referrerPolicy: no-referrer # Security enhancement (Prevents leaking of referer information)
traefik.https.frontend.headers.STSPreload: true
traefik.https.frontend.headers.STSSeconds: 15552000
traefik.https.frontend.rule: "Host:${TRAEFIK_HOSTNAME}; AddPrefix:/guacamole"
traefik.https.port: "8080"
### End HTTPS Segment
links:
- guacd
- mysql