mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-01 20:46:56 +00:00
🔧 Use regex-based api,saml
locations without base path
This commit is contained in:
parent
9b3c24927c
commit
eedd129a54
@ -20,8 +20,8 @@ data:
|
|||||||
client_header_buffer_size 32k;
|
client_header_buffer_size 32k;
|
||||||
large_client_header_buffers 8 64k;
|
large_client_header_buffers 8 64k;
|
||||||
|
|
||||||
location {{ default "" (((.Values.tap).routing).front).basePath }}/api {
|
location ~ ^(/.+)?/api {
|
||||||
rewrite ^{{ default "" (((.Values.tap).routing).front).basePath }}/api(.*)$ $1 break;
|
rewrite ^(/.+)?/api(.*)$ $2 break;
|
||||||
proxy_pass http://kubeshark-hub;
|
proxy_pass http://kubeshark-hub;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
@ -35,8 +35,8 @@ data:
|
|||||||
proxy_pass_request_headers on;
|
proxy_pass_request_headers on;
|
||||||
}
|
}
|
||||||
|
|
||||||
location {{ default "" (((.Values.tap).routing).front).basePath }}/saml {
|
location ~ ^(/.+)?/saml {
|
||||||
rewrite ^{{ default "" (((.Values.tap).routing).front).basePath }}/saml(.*)$ /saml$1 break;
|
rewrite ^(/.+)?/saml(.*)$ /saml$2 break;
|
||||||
proxy_pass http://kubeshark-hub;
|
proxy_pass http://kubeshark-hub;
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
|
Loading…
Reference in New Issue
Block a user