Prechádzať zdrojové kódy

update nginx for jupyter notebook

fengchang 1 rok pred
rodič
commit
cec9671403
1 zmenil súbory, kde vykonal 9 pridanie a 0 odobranie
  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 {
      }