优化沙箱环境增加Jupter,暴露,更加方便管理环境

This commit is contained in:
2026-02-04 19:15:04 +08:00
parent 1aad0ee9cc
commit 55bbf50e3c
3 changed files with 27 additions and 4 deletions
+9
View File
@@ -97,6 +97,15 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
}
location /jupyterlab/ {
proxy_pass http://127.0.0.1:8888/lab/;
proxy_redirect off;
proxy_set_header X-Original-Prefix '/lab';
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
}
location /socket.io {
proxy_pass http://127.0.0.1:3002;
proxy_read_timeout 300s;