odf_new/server/ZR.Vue/nginx.conf
code@server a20a6b869c fix: 修复编译错误 + 新增后台管理前端Docker部署配置
- OdfCheckinService: 添加 using Infrastructure 引入 CustomException
- OdfCableFaultsService: 修复匿名类型 ToPage 返回类型不匹配问题
- ZR.Vue: 新增 Dockerfile、nginx.conf、.env.production 用于Docker部署
2026-03-04 17:45:05 +08:00

28 lines
758 B
Nginx Configuration File

server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /prod-api/ {
proxy_pass http://odf-new-server:8888/;
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_set_header X-Forwarded-Proto $scheme;
}
location /msghub {
proxy_pass http://odf-new-server:8888/msghub;
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;
}
}