diff --git a/backend/kustomize/overlays/dev/kustomization.yaml b/backend/kustomize/overlays/dev/kustomization.yaml index 4c3b6aa5481fd6824e7513042c54f5a2feb39e51..21a82722fea1b2cc6db378d17a304636eff80c0a 100644 --- a/backend/kustomize/overlays/dev/kustomization.yaml +++ b/backend/kustomize/overlays/dev/kustomization.yaml @@ -21,3 +21,19 @@ secretGenerator: - url=postgres://db_user:db_pass@oetzi-database-service/db_name name: oetzi-database-credentials type: Opaque +patchesJSON6902: + - target: + group: networking.k8s.io + 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(/|$)(.*) diff --git a/backend/kustomize/overlays/stg/kustomization.yaml b/backend/kustomize/overlays/stg/kustomization.yaml index 2f6325109b7a0b5dea618994472b6bb2c3ecf692..527dde57d6fae963ec42313f4d78a67efc5df3ad 100644 --- a/backend/kustomize/overlays/stg/kustomization.yaml +++ b/backend/kustomize/overlays/stg/kustomization.yaml @@ -22,3 +22,19 @@ secretGenerator: - url=postgres://db_user:db_pass@oetzi-database-service/db_name name: oetzi-database-credentials type: Opaque +patchesJSON6902: + - target: + group: networking.k8s.io + 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(/|$)(.*)