Sfoglia il codice sorgente

update nginx for jupyter notebook

fengchang 1 anno fa
parent
commit
cec9671403
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      nginx.conf

+ 9 - 0
nginx.conf

@@ -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 {
      }