diff --git a/helm-chart/templates/11-nginx-config-map.yaml b/helm-chart/templates/11-nginx-config-map.yaml index 86323c710..62396a23b 100644 --- a/helm-chart/templates/11-nginx-config-map.yaml +++ b/helm-chart/templates/11-nginx-config-map.yaml @@ -35,6 +35,23 @@ data: proxy_pass_request_headers on; } + location {{ default "" (((.Values.tap).routing).front).basePath }}/mcp { + rewrite ^{{ default "" (((.Values.tap).routing).front).basePath }}/mcp(.*)$ /mcp$1 break; + proxy_pass http://kubeshark-hub; + proxy_set_header X-Forwarded-For $remote_addr; + proxy_set_header Host $http_host; + proxy_set_header Authorization $http_authorization; + proxy_pass_header Authorization; + + proxy_http_version 1.1; + + proxy_connect_timeout 30s; + proxy_read_timeout 120s; + proxy_send_timeout 30s; + proxy_pass_request_body on; + proxy_pass_request_headers on; + } + location {{ default "" (((.Values.tap).routing).front).basePath }}/saml { rewrite ^{{ default "" (((.Values.tap).routing).front).basePath }}/saml(.*)$ /saml$1 break; proxy_pass http://kubeshark-hub;