diff --git a/backend/kustomize/overlays/dev/kustomization.yaml b/backend/kustomize/overlays/dev/kustomization.yaml
index 21a82722fea1b2cc6db378d17a304636eff80c0a..2770bae1a7bd446218c03741c7ddeed4b92fc8f9 100644
--- a/backend/kustomize/overlays/dev/kustomization.yaml
+++ b/backend/kustomize/overlays/dev/kustomization.yaml
@@ -27,13 +27,4 @@ patchesJSON6902:
       version: v1
       kind: Ingress
       name: oetzi-webserver-ingress
-    patch: |-
-      - op: replace
-        path: /metadata/annotations/nginx.ingress.kubernetes.io~1rewrite-target
-        value: /$2
-      - op: replace
-        path: /spec/rules/0/host
-        value: minikube.localhost
-      - op: replace
-        path: /spec/rules/0/http/paths/0/path
-        value: /oetzi(/|$)(.*)
+    patch: webserver.ingress.patch.yaml
diff --git a/backend/kustomize/overlays/dev/webserver.ingress.patch.yaml b/backend/kustomize/overlays/dev/webserver.ingress.patch.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..f01784c1c37239761860096a0a9ccd9c885a151a
--- /dev/null
+++ b/backend/kustomize/overlays/dev/webserver.ingress.patch.yaml
@@ -0,0 +1,9 @@
+- op: replace
+  path: /metadata/annotations/nginx.ingress.kubernetes.io~1rewrite-target
+  value: /$2
+- op: replace
+  path: /spec/rules/0/host
+  value: minikube.localhost
+- op: replace
+  path: /spec/rules/0/http/paths/0/path
+  value: /oetzi(/|$)(.*)
diff --git a/backend/kustomize/overlays/stg/kustomization.yaml b/backend/kustomize/overlays/stg/kustomization.yaml
index 527dde57d6fae963ec42313f4d78a67efc5df3ad..529beb7eca2869c0c97c238d797ae62cba88a652 100644
--- a/backend/kustomize/overlays/stg/kustomization.yaml
+++ b/backend/kustomize/overlays/stg/kustomization.yaml
@@ -28,13 +28,4 @@ patchesJSON6902:
       version: v1
       kind: Ingress
       name: oetzi-webserver-ingress
-    patch: |-
-      - op: replace
-        path: /metadata/annotations/nginx.ingress.kubernetes.io~1rewrite-target
-        value: /$2
-      - op: replace
-        path: /spec/rules/0/host
-        value: kommul-dev.eurac.edu
-      - op: replace
-        path: /spec/rules/0/http/paths/0/path
-        value: /oetzi(/|$)(.*)
+    patch: webserver.ingress.patch.yaml
diff --git a/backend/kustomize/overlays/stg/webserver.ingress.patch.yaml b/backend/kustomize/overlays/stg/webserver.ingress.patch.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..83d21245bfaf6c1adaf3e4c8daaeac8077ea80eb
--- /dev/null
+++ b/backend/kustomize/overlays/stg/webserver.ingress.patch.yaml
@@ -0,0 +1,9 @@
+- op: replace
+  path: /metadata/annotations/nginx.ingress.kubernetes.io~1rewrite-target
+  value: /$2
+- op: replace
+  path: /spec/rules/0/host
+  value: kommul-dev.eurac.edu
+- op: replace
+  path: /spec/rules/0/http/paths/0/path
+  value: /oetzi(/|$)(.*)