Skip to content
Snippets Groups Projects
Verified Commit 10b4a4e6 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

feat: fix issue with autodiscover ingress

parent a1eb8571
No related branches found
No related tags found
No related merge requests found
Pipeline #2763 passed
...@@ -31,6 +31,13 @@ spec: ...@@ -31,6 +31,13 @@ spec:
- name: config - name: config
configMap: configMap:
name: {{ include "mailu-helm.fullname" . }}-autodiscover name: {{ include "mailu-helm.fullname" . }}-autodiscover
items:
- key: mta-sts.txt
path: ".well-known/mta-sts.txt"
- key: config-v1.1.xml
path: config-v1.1.xml
- key: autodiscover.xml
path: autodiscover.xml
containers: containers:
- name: autodiscover - name: autodiscover
securityContext: securityContext:
......
...@@ -11,7 +11,6 @@ metadata: ...@@ -11,7 +11,6 @@ metadata:
nginx.ingress.kubernetes.io/cache-whitelist-query-params: "" nginx.ingress.kubernetes.io/cache-whitelist-query-params: ""
nginx.ingress.kubernetes.io/configuration-snippet: |- nginx.ingress.kubernetes.io/configuration-snippet: |-
rewrite ^/.well-known/(carddav|caldav)$ "https://{{ .Values.webdav.host }}{{ .Values.webdav.path }}" permanent; rewrite ^/.well-known/(carddav|caldav)$ "https://{{ .Values.webdav.host }}{{ .Values.webdav.path }}" permanent;
rewrite ^/.well-known/(.*) /$1 last;
rewrite ^/mail/(.*) /$1 last; rewrite ^/mail/(.*) /$1 last;
{{- range $key, $value := .Values.ingress.annotations }} {{- range $key, $value := .Values.ingress.annotations }}
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }} {{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment