|
|
@ -20,7 +20,9 @@ metadata: |
|
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod" |
|
|
|
{{- end }} |
|
|
|
{{- if contains "nginx" .Values.ingress.class }} |
|
|
|
{{- if .Values.ingress.vhostmonster -}} |
|
|
|
nginx.ingress.kubernetes.io/rewrite-target: "/VirtualHostBase/https/{{ $hostPrefix }}.{{ $hostName }}:443{{ $zopeFolder }}portal/VirtualHostRoot/$1" |
|
|
|
{{- end }} |
|
|
|
nginx.ingress.kubernetes.io/from-to-www-redirect: "true" |
|
|
|
nginx.ingress.kubernetes.io/service-upstream: "true" |
|
|
|
{{- end }} |
|
|
@ -31,8 +33,10 @@ metadata: |
|
|
|
{{- else }} |
|
|
|
# DO NOT USE TLS |
|
|
|
{{- if contains "nginx" .Values.ingress.class }} |
|
|
|
{{- if .Values.ingress.vhostmonster -}} |
|
|
|
nginx.ingress.kubernetes.io/rewrite-target: "/VirtualHostBase/http/{{ $hostPrefix }}.{{ $hostName }}:80{{ $zopeFolder }}portal/VirtualHostRoot/$1" |
|
|
|
{{- end }} |
|
|
|
{{- end }} |
|
|
|
{{- if contains "alb" .Values.ingress.class }} |
|
|
|
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}]' |
|
|
|
{{- end }} |
|
|
|