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

feat: simplify to autodiscover ingress

parent 7b58e235
No related branches found
No related tags found
No related merge requests found
Pipeline #2761 passed
......@@ -46,8 +46,6 @@ spec:
volumeMounts:
- name: config
mountPath: "/usr/share/nginx/html"
- name: config
mountPath: "/usr/share/nginx/html/mail"
startupProbe:
httpGet:
path: /config-v1.1.xml
......
......@@ -11,6 +11,8 @@ metadata:
nginx.ingress.kubernetes.io/cache-whitelist-query-params: ""
nginx.ingress.kubernetes.io/configuration-snippet: |-
rewrite ^/.well-known/(carddav|caldav)$ "https://{{ .Values.webdav.host }}{{ .Values.webdav.path }}" permanent;
rewrite ^/.well-known/(.*) /$1 last;
rewrite ^/mail/(.*) /$1 last;
{{- range $key, $value := .Values.ingress.annotations }}
{{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }}
{{- end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment