diff --git a/apps/django/base/frontend.yaml b/apps/django/base/frontend.yaml index 81af020..5c56c46 100644 --- a/apps/django/base/frontend.yaml +++ b/apps/django/base/frontend.yaml @@ -84,3 +84,17 @@ spec: - key: nginx.conf path: _default: nginx.conf + - name: zitadel-configmap + mountPath: + _default: /opt/react_client/static/config.json + subPath: + _default: config.json + readOnly: + _default: true + configMap: + name: + _default: zitadel-configmap + items: + - key: config.json + path: + _default: config.json diff --git a/apps/django/base/nginx-configmap.yaml b/apps/django/base/nginx-configmap.yaml index 2b70b85..a45761a 100644 --- a/apps/django/base/nginx-configmap.yaml +++ b/apps/django/base/nginx-configmap.yaml @@ -62,36 +62,36 @@ data: if_modified_since off; expires off; } - location ~^/api/pm/ { - #rewrite /api/(.+) /$1 break; - proxy_set_header Host $host; - proxy_pass http://backend-svc.pm.svc.cluster.local:8000; - } + # location ~^/api/pm/ { + # #rewrite /api/(.+) /$1 break; + # proxy_set_header Host $host; + # proxy_pass http://backend-svc.pm.svc.cluster.local:8000; + # } - location ~^/api/v1/documents/ { - #rewrite /api/(.+) /$1 break; - proxy_set_header Host $host; - proxy_pass http://backend-filestream-svc.documentations.svc.cluster.local:80; - } + # location ~^/api/v1/documents/ { + # #rewrite /api/(.+) /$1 break; + # proxy_set_header Host $host; + # 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 ~^/workspaces-v2/(.+).js { - proxy_http_version 1.1; - proxy_set_header Connection ""; - rewrite /workspaces-v2/(.+) /$1 break; - proxy_pass http://frontend-svc.workspaces.svc.cluster.local:80; - } + # location ~^/workspaces-v2/(.+).js { + # proxy_http_version 1.1; + # proxy_set_header Connection ""; + # rewrite /workspaces-v2/(.+) /$1 break; + # proxy_pass http://frontend-svc.workspaces.svc.cluster.local:80; + # } - location ~^/workspaces-v2/(.+)\.wasm$ { - proxy_http_version 1.1; - proxy_set_header Connection ""; - rewrite ^/workspaces-v2/(.+) /$1 break; - proxy_pass http://frontend-svc.workspaces.svc.cluster.local:80; - } + # location ~^/workspaces-v2/(.+)\.wasm$ { + # proxy_http_version 1.1; + # proxy_set_header Connection ""; + # rewrite ^/workspaces-v2/(.+) /$1 break; + # proxy_pass http://frontend-svc.workspaces.svc.cluster.local:80; + # } location @index { add_header Cache-Control 'no-cache, must-revalidate, proxy-revalidate, max-age=0'; diff --git a/apps/django/base/zitadel-configmap.yaml b/apps/django/base/zitadel-configmap.yaml index 8b71cec..8398f6a 100644 --- a/apps/django/base/zitadel-configmap.yaml +++ b/apps/django/base/zitadel-configmap.yaml @@ -8,8 +8,8 @@ data: { "auth_type": "zitadel", "zitadel": { - "client_id": "379557107642492501", - "host": "https://zitadel.contour.infra.sarex.tech" + "client_id": "383923818340615274", + "host": "https://sarex-login.uralmine.com" } }