|
@@ -355,6 +355,15 @@ http {
|
|
|
proxy_set_header Host jupyter.hichinatravel.com;
|
|
|
proxy_pass http://127.0.0.1:8888;
|
|
|
}
|
|
|
+ location /api/kernels/ {
|
|
|
+ proxy_pass http://127.0.0.1:8888;
|
|
|
+ proxy_set_header Host $host;
|
|
|
+ # websocket support
|
|
|
+ proxy_http_version 1.1;
|
|
|
+ proxy_set_header Upgrade "websocket";
|
|
|
+ proxy_set_header Connection "Upgrade";
|
|
|
+ proxy_read_timeout 86400;
|
|
|
+ }
|
|
|
error_page 404 /404.html;
|
|
|
location = /40x.html {
|
|
|
}
|