mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
Reinhard Nägele
parent
5fdb84fdf4
commit
ba0e74ae38
@@ -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:
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user