Skip to content
Snippets Groups Projects
Commit 07d511e4a0bb authored by Xavier Garnier's avatar Xavier Garnier :bicyclist:
Browse files

feat(ingress): add redirectToFromWww value

parent 42036adcd0a7
No related branches found
No related tags found
1 merge request!9Topic/default/improvments
......@@ -8,6 +8,9 @@
app.kubernetes.io/instance: {{ .Release.Name }}
annotations:
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
{{- if .Values.ingress.redirectToFromWww }}
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
{{- end }}
{{- with .Values.ingress.clusterIssuer }}
cert-manager.io/cluster-issuer: {{ . }}
{{- end }}
......@@ -28,6 +31,9 @@
tls:
- hosts:
- {{ .Values.host }}
{{- if .Values.ingress.redirectToFromWww }}
- www.{{ .Values.host }}
{{- end }}
{{- if .Values.ingress.tlsSecret }}
secretName: {{ .Release.Name }}-tls
{{- end }}
......
......@@ -65,6 +65,7 @@
annotations: {}
# noindex: true
corsAllowOrigin: false # can be false, "*", "toto.example.org" …
redirectToFromWww: false
# Additional ingresses
additionalIngresses: []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment