mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-16 14:53:49 +00:00
🔨 Add /mcp location
rewrite block to nginx
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user