feat: add nginx, proxy to jupyter after auth
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user