🔨 Add /mcp location rewrite block to nginx

This commit is contained in:
tiptophelmet
2025-09-04 19:54:47 +03:00
parent 349d8b07df
commit bddcb91381

View File

@@ -35,6 +35,23 @@ data:
proxy_pass_request_headers on; 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 { location {{ default "" (((.Values.tap).routing).front).basePath }}/saml {
rewrite ^{{ default "" (((.Values.tap).routing).front).basePath }}/saml(.*)$ /saml$1 break; rewrite ^{{ default "" (((.Values.tap).routing).front).basePath }}/saml(.*)$ /saml$1 break;
proxy_pass http://kubeshark-hub; proxy_pass http://kubeshark-hub;