[stable/traefik] Allow enforcing SSL without having SSL enabled in Traefik itself (#2778)

* Allow to enforce SSL without having SSL enabled

* Bump Traefik Chart version to 1.4.3

* Always use regex redirect for enforcing SSL
This commit is contained in:
Thomas Marek
2017-12-15 16:48:07 +01:00
committed by Reinhard Nägele
parent 5fdb84fdf4
commit ba0e74ae38
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: traefik
version: 1.14.4
version: 1.14.5
appVersion: 1.4.5
description: A Traefik based Kubernetes ingress controller with Let's Encrypt support
keywords:
+3 -2
View File
@@ -23,9 +23,10 @@ data:
[entryPoints.http]
address = ":80"
compress = {{ .Values.gzip.enabled }}
{{- if and .Values.ssl.enabled .Values.ssl.enforced }}
{{- if .Values.ssl.enforced }}
[entryPoints.http.redirect]
entryPoint = "https"
regex = "^http://(.*)"
replacement = "https://$1"
{{- end }}
{{- if .Values.ssl.enabled }}
[entryPoints.https]