2021-09-08 13:38:31 +00:00
|
|
|
{{- $values := .Values }}
|
|
|
|
{{- $namespace := ( printf "ix-%s" .Release.Name ) }}
|
|
|
|
{{- if or ( not .Values.ingressClass.enabled ) ( and ( .Values.ingressClass.enabled ) ( .Values.ingressClass.isDefaultClass ) ) }}
|
|
|
|
{{- $namespace = "default" }}
|
|
|
|
{{- end }}
|
|
|
|
---
|
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
|
|
kind: Middleware
|
|
|
|
metadata:
|
|
|
|
name: tc-nextcloud-redirectregex-dav
|
2021-09-08 22:24:24 +00:00
|
|
|
namespace: {{ $namespace }}
|
2021-09-08 13:38:31 +00:00
|
|
|
spec:
|
|
|
|
redirectRegex:
|
|
|
|
regex: "https://(.*)/.well-known/(card|cal)dav"
|
|
|
|
replacement: "https://${1}/remote.php/dav/"
|
|
|
|
---
|
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
|
|
kind: Middleware
|
|
|
|
metadata:
|
|
|
|
name: tc-nextcloud-chain
|
|
|
|
namespace: {{ $namespace }}
|
|
|
|
spec:
|
|
|
|
chain:
|
|
|
|
middlewares:
|
|
|
|
- name: tc-nextcloud-redirectregex-dav
|