feat: add nginx, proxy to jupyter after auth

This commit is contained in:
tao.chen
2026-07-27 19:58:17 +08:00
parent 1c03a32298
commit ab731bdc3b
4 changed files with 214 additions and 112 deletions
+5
View File
@@ -112,6 +112,11 @@ def _handle_start(ws_id: str):
"--ServerApp.terminals_enabled=False",
# 兼容经典 Notebook / 旧版配置项
"--NotebookApp.terminals_enabled=False",
# 允许 Nginx 跨域代理与 WebSocket 通信(关键)
"--ServerApp.allow_origin=*",
"--NotebookApp.allow_origin=*",
"--ServerApp.disable_check_xsrf=True",
"--NotebookApp.disable_check_xsrf=True"
]
try: