jupyter 反向代理配置
抓了下包,看了一下WS
连不上,参考这个,问题解决
location / {
proxy_pass http://127.0.0.1:8813/; # JUPYTER_PORT 为 Jupyter 运行端口
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_redirect off;
}
如果使用的宝塔面板,编辑配置文件【站点设置】--->【反向代理】--->【配置文件】,将原有的location /
节点删掉,用上面的替换就OK了