This commit is contained in:
2023-07-25 18:43:53 +02:00
parent e5f5f06642
commit e715cdf9af
2 changed files with 15 additions and 4 deletions

View File

@@ -0,0 +1,15 @@
resource "kubectl_manifest" "redirectregex" {
yaml_body = <<-EOF
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: "${var.instance}-redirectregex"
namespace: "${var.namespace}"
labels: ${jsonencode(local.common-labels)}
spec:
redirectRegex:
permanent: true
regex: "https://(.*)/.well-known/(card|cal)dav"
replacement: "https://$${1}/remote.php/dav/"
EOF
}