Upload deploy/scripts/nginx_geoevents.conf with huggingface_hub
Browse files34 unmodified lines3536373839404142434445464734 unmodified linesreturn 301 /cdhe/;}# ---------- worldmonitor(vite 开发服务器,base=/wm/) ----------location ^~ /wm/ {proxy_pass http://127.0.0.1:3001;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_read_timeout 600s;34 unmodified lines3536373839404142434445464748495051525354555657585960616263646566676834 unmodified linesreturn 301 /cdhe/;}# ---------- worldmonitor 的绝对路径静态资源 ----------# 前端有若干 fetch('/data/...') 写死绝对路径,base=/wm/ 时打不到,这里补一条映射location ^~ /data/ {proxy_pass http://127.0.0.1:3001/wm/data/;proxy_http_version 1.1;proxy_set_header Host 127.0.0.1:3001;proxy_read_timeout 120s;}# ---------- 中文入口页 ----------location ^~ /portal/ {alias /data/apps/portal/;index index.html;autoindex off;}location = /portal {return 301 /portal/;}# ---------- worldmonitor(vite 开发服务器,base=/wm/) ----------location ^~ /wm/ {proxy_pass http://127.0.0.1:3001;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";# Vite 的 host 校验只认 localhost/127.0.0.1,这里强制改写,否则公网访问 403proxy_set_header Host 127.0.0.1:3001;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_read_timeout 600s;
deploy/scripts/nginx_geoevents.conf+22-1