Commit e97e95d6 authored by lover2010's avatar lover2010

123

parent f7c838ab
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
client_max_body_size 512m;
location / {
try_files $uri $uri/ /index.html;
}
# 接口
location /api/ {
proxy_pass http://172.0.107.76:31001;
proxy_read_timeout 180s;
}
# location /manage {
# try_files $uri $uri/ /manage/index.html;
# }
# 大屏前端
#location /DataV {
# try_files $uri $uri/ /DataV/index.html;
#}
# 报表前端
#location /Report {
# try_files $uri $uri/ /Report/index.html;
#}
# 数据报表接口配置
#location /ReportServer/ {
# proxy_pass http://172.0.107.76:31003/;
#}
# websocket
location ^~ /websocket {
proxy_pass http://172.0.107.76:31001/message/websocket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 600s;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment