JUPYTER 服务的 NGINX 配置
jupyter 配置
配置文件在 /home/{user}/.jupyter/jupyter_notebook_config.py
配置 jupyter 的路径
c.NotebookApp.base_url = '/jupyter/'
nginx 配置
jupyter 使用了 websocket 协议,所以需要配置支持 websocket。
location /jupyter/ { proxy_pass http://jupyter; proxy_set_header Host $host; proxy_set_header X-Real-Scheme $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # WebSocket support proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_read_timeout 120s; proxy_next_upstream error; }
jupyter notebook 用到了 websocket, 所以需要配置
proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";
相关推荐
weiiron 2020-11-16
yonezcy 2020-09-27
liwg0 2020-09-24
lff 2020-08-23
xhgWanderingsoul 2020-08-16
巩庆奎 2020-07-21
liangzhouqu 2020-07-07
assastor 2020-07-05
tenvainvi 2020-06-09
wuguangbin0 2020-04-24
JannaShen 2020-04-11
iOampDagWatu 2020-03-23
始终不够 2020-03-05
colin00 2020-02-14
zhuquan0 2020-02-11
MrNineteen 2020-02-09
liying00 2020-02-09
julien 2020-02-03
chenxihou 2020-01-28