Adapt notebook proxy
@@ -35,12 +35,11 @@ server {
proxy_set_header Origin "";
}
-
location ~ /notebook/proxy/([-_.:\w]+)/(.*) {
resolver kube-dns.kube-system.svc.cluster.local valid=5s;
rewrite_log on;
- rewrite ^/notebook/proxy/([-_.:\w]+)/(.*) /$2 break;
- proxy_pass http://$1$request_uri;
+ rewrite ^/notebook/proxy/([-_.:\w]+)/(.*) /notebook/proxy/$1/$2 break;
+ proxy_pass http://$1;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
