diff --git a/apps/django/base/nginx-configmap.yaml b/apps/django/base/nginx-configmap.yaml index 1b9adf8..15b9bcc 100644 --- a/apps/django/base/nginx-configmap.yaml +++ b/apps/django/base/nginx-configmap.yaml @@ -74,10 +74,10 @@ data: proxy_pass http://backend-filestream-svc.documentations.svc.cluster.local:80; } - location ~^/(api|admin)/ { - proxy_set_header Host $host; - proxy_pass http://backend-svc.django.svc.cluster.local:80; - } + # location ~^/(api|admin)/ { + # proxy_set_header Host $host; + # proxy_pass http://backend-svc.django.svc.cluster.local:80; + # } location ~^/workspaces-v2/(.+).js { rewrite /workspaces-v2/(.+) /$1 break; diff --git a/clusters/yc-k8s-test/infrastructure/patches/istio-config.yaml b/clusters/yc-k8s-test/infrastructure/patches/istio-config.yaml index 58383c3..612b6bf 100644 --- a/clusters/yc-k8s-test/infrastructure/patches/istio-config.yaml +++ b/clusters/yc-k8s-test/infrastructure/patches/istio-config.yaml @@ -168,7 +168,7 @@ spec: tls: credentialName: camunda-optimize-tls virtualServices: - platform: + platform-frontend: name: sarex-frontend-virt-service namespace: gateway hosts: @@ -180,6 +180,18 @@ spec: prefix: / service: frontend-svc.django.svc.cluster.local port: 80 + platform-api: + name: sarex-backend-virt-service + namespace: gateway + hosts: + - sarex.contour.infra.sarex.tech + gateways: + - gateway/platform-gateway + routes: + - path: + prefix: /api/ + service: backend-svc.django.svc.cluster.local + port: 80 vault: name: vault-virt-service namespace: gateway