From 8b50b3ad84af1182564b9cfae49aa28a260031cb Mon Sep 17 00:00:00 2001 From: Marcel Henrich Date: Sat, 26 Jul 2025 13:52:50 +0200 Subject: [PATCH] fix(nextcloud): fix traefik redirect regex ingress type (#37708) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** The current ingress type for traefik of nextcloud is wrong. It has to be "redirect-regex" instead of "redirectRegex". **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [x] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code - [ ] 📜 Documentation Changes **🧪 How Has This Been Tested?** I experimented with nextcloud, otherwise error is ``` Error: execution error at (nextcloud/templates/common.yaml:92:4): Traefik - Middleware [redirectRegex] is not supported. Supported middlewares are [compress, plugin-real-ip, plugin-rewrite-response-headers, rate-limit, replace-path, replace-path-regex, retry, strip-prefix-regex, chain, content-type, plugin-mod-security, plugin-theme-park, redirect-regex, basic-auth, buffering, forward-auth, headers, ip-allow-list, plugin-bouncer, plugin-geoblock, redirect-scheme, add-prefix, strip-prefix] helm.go:86: 2025-07-23 21:29:35.832733916 +0200 CEST m=+0.440218084 [debug] execution error at (nextcloud/templates/common.yaml:92:4): Traefik - Middleware [redirectRegex] is not supported. Supported middlewares are [compress, plugin-real-ip, plugin-rewrite-response-headers, rate-limit, replace-path, replace-path-regex, retry, strip-prefix-regex, chain, content-type, plugin-mod-security, plugin-theme-park, redirect-regex, basic-auth, buffering, forward-auth, headers, ip-allow-list, plugin-bouncer, plugin-geoblock, redirect-scheme, add-prefix, strip-prefix] ``` **📃 Notes:** **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [x] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made changes to the documentation - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [x] ⬆️ I increased versions for any altered app according to semantic versioning - [x] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):`, `chore(chart-name):`, `docs(chart-name):` or `fix(docs):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --------- Signed-off-by: Alfred Göppel <43101280+alfi0812@users.noreply.github.com> Co-authored-by: Alfred Göppel <43101280+alfi0812@users.noreply.github.com> --- charts/premium/nextcloud/Chart.yaml | 3 +-- charts/premium/nextcloud/values.yaml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/charts/premium/nextcloud/Chart.yaml b/charts/premium/nextcloud/Chart.yaml index 150e7f512ae..e74a88181f1 100644 --- a/charts/premium/nextcloud/Chart.yaml +++ b/charts/premium/nextcloud/Chart.yaml @@ -52,5 +52,4 @@ sources: - https://hub.docker.com/r/collabora/code - https://hub.docker.com/r/nginxinc/nginx-unprivileged type: application -version: 36.2.2 - +version: 36.2.3 diff --git a/charts/premium/nextcloud/values.yaml b/charts/premium/nextcloud/values.yaml index 14aa4167347..12f82a36417 100644 --- a/charts/premium/nextcloud/values.yaml +++ b/charts/premium/nextcloud/values.yaml @@ -535,7 +535,7 @@ ingressMiddlewares: traefik: nextcloud-redirect: enabled: false - type: redirectRegex + type: redirect-regex data: regex: "https://(.*)/.well-known/(card|cal)dav" replacement: "https://${1}/remote.php/dav/"