nginx jupyterWeb

location /jupyterWeb/ {
add_header X-Frame-Options SAMEORIGIN;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';

if ($request_method = 'OPTIONS') {
return 204;
}

proxy_pass http://192.168.50.106:28888/;
proxy_read_timeout 1800;
}
posted @ 2023-11-30 21:16  牧之丨  阅读(10)  评论(0编辑  收藏  举报