Added SSH capabilities for Traefik

This commit is contained in:
WilliamMiceli
2018-11-30 16:55:30 -05:00
parent 2627a3c7c1
commit 9646491625

View File

@@ -16,13 +16,24 @@ services:
{{- end}} {{- end}}
{{- if .Values.TRAEFIK_HOST}} {{- if .Values.TRAEFIK_HOST}}
traefik.enable: true traefik.enable: true
traefik.frontend.rule: Host:${TRAEFIK_HOST} ### Start SSH Segment
traefik.frontend.entryPoints: http,https traefik.ssh.frontend.entryPoints: ssh
traefik.frontend.headers.forceSTSHeader: true traefik.ssh.frontend.headers.forceSTSHeader: true
traefik.frontend.headers.SSLRedirect: true traefik.ssh.frontend.headers.SSLRedirect: true
traefik.frontend.headers.STSPreload: true traefik.ssh.frontend.headers.STSPreload: true
traefik.frontend.headers.STSSeconds: 15552000 traefik.ssh.frontend.headers.STSSeconds: 15552000
traefik.port: "3000" traefik.ssh.frontend.rule: Host:${TRAEFIK_HOST}
traefik.ssh.port: "22"
### End SSH Segment
### Start Web Segment
traefik.web.frontend.entryPoints: http,https
traefik.web.frontend.headers.forceSTSHeader: true
traefik.web.frontend.headers.SSLRedirect: true
traefik.web.frontend.headers.STSPreload: true
traefik.web.frontend.headers.STSSeconds: 15552000
traefik.web.frontend.rule: Host:${TRAEFIK_HOST}
traefik.web.port: "3000"
### End Web Segment
{{- else}} {{- else}}
traefik.enable: false traefik.enable: false
{{- end}} {{- end}}