0%
nginx server 配置示例
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| server { listen 6011;
location /api/v1 { proxy_pass http://127.0.0.1:48000; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; }
location / { root /opt/web_app/xd-ui/evsmc-ui/dist; index index.html index.htm; try_files $uri $uri/ /index.html; } }
|