856 lines
25 KiB
Plaintext
856 lines
25 KiB
Plaintext
|
|
|
||
|
|
user nginx;
|
||
|
|
worker_processes 1;
|
||
|
|
|
||
|
|
#error_log logs/error.log;
|
||
|
|
#error_log logs/error.log notice;
|
||
|
|
#error_log logs/error.log info;
|
||
|
|
|
||
|
|
#pid logs/nginx.pid;
|
||
|
|
|
||
|
|
|
||
|
|
events {
|
||
|
|
worker_connections 1024;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
http {
|
||
|
|
underscores_in_headers on;
|
||
|
|
include mime.types;
|
||
|
|
default_type application/octet-stream;
|
||
|
|
|
||
|
|
client_max_body_size 10240M;
|
||
|
|
|
||
|
|
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||
|
|
# '$status $body_bytes_sent "$http_referer" '
|
||
|
|
# '"$http_user_agent" "$http_x_forwarded_for"';
|
||
|
|
|
||
|
|
#access_log logs/access.log main;
|
||
|
|
|
||
|
|
sendfile on;
|
||
|
|
#tcp_nopush on;
|
||
|
|
|
||
|
|
#keepalive_timeout 0;
|
||
|
|
keepalive_timeout 300;
|
||
|
|
|
||
|
|
#gzip on;
|
||
|
|
#无人机施工配置
|
||
|
|
upstream uavIp{
|
||
|
|
server 10.138.55.117:19200;
|
||
|
|
server 10.138.55.118:19200;
|
||
|
|
}
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 8888;
|
||
|
|
server_name localhost;
|
||
|
|
|
||
|
|
#charset koi8-r;
|
||
|
|
|
||
|
|
#access_log logs/host.access.log main;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
|
||
|
|
|
||
|
|
if ($request_method = 'OPTIONS') {
|
||
|
|
add_header Access-Control-Allow-Origin *;
|
||
|
|
add_header Access-Control-Allow-Methods *;
|
||
|
|
add_header Access-Control-Allow-Headers *;
|
||
|
|
return 204;
|
||
|
|
}
|
||
|
|
#proxy_pass http://10.138.55.101:21626/;
|
||
|
|
#proxy_pass http://10.138.55.104:8888/;
|
||
|
|
proxy_pass http://10.138.55.106:58101/;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
location /canteen/imagepush/ {
|
||
|
|
#proxy_pass http://10.138.55.101:21626/h5/;
|
||
|
|
#proxy_pass http://10.138.55.106:8089/;
|
||
|
|
proxy_pass http://10.138.55.106:58100/h5/;
|
||
|
|
}
|
||
|
|
#location /canteen/ {
|
||
|
|
#proxy_pass http://10.138.55.101:21626/h5/;
|
||
|
|
# proxy_pass http://10.138.55.104:8888/canteen/;
|
||
|
|
#}
|
||
|
|
location /canteen/imagepushdata/ {
|
||
|
|
#proxy_pass http://10.138.55.101:21626/h5/;
|
||
|
|
proxy_pass http://10.138.55.106:8089/;
|
||
|
|
#proxy_pass http://10.138.55.106:58100/h5/;
|
||
|
|
}
|
||
|
|
location /h5/ {
|
||
|
|
proxy_pass http://10.138.55.106:58100/h5/;
|
||
|
|
# proxy_pass http://10.138.55.104:58008/h5pro/;
|
||
|
|
}
|
||
|
|
location /tengyun-api/api/v1/android/inventory/search/material {
|
||
|
|
proxy_pass http://10.138.55.104:58080/smart-canteen/api/v1/android/inventory/search/material/;
|
||
|
|
}
|
||
|
|
location /tengyun-api/api/v1/android/inventory/list/supplier {
|
||
|
|
proxy_pass http://10.138.55.104:58080/smart-canteen/api/v1/android/inventory/list/supplier/;
|
||
|
|
}
|
||
|
|
location /tengyun-api/ {
|
||
|
|
#proxy_pass https://test06.xnzn.net/tengyun-api/;
|
||
|
|
proxy_pass http://10.138.55.106:58100/tengyun-api/;
|
||
|
|
#proxy_pass http://10.138.55.104:8888/dinner/;
|
||
|
|
}
|
||
|
|
location /lnyst/ {
|
||
|
|
proxy_pass http://10.138.55.106:58100/lnyst/;
|
||
|
|
}
|
||
|
|
# location /lzst/ {
|
||
|
|
# proxy_pass http://10.138.55.127:58100/;
|
||
|
|
# }
|
||
|
|
# location /mqtt/ {
|
||
|
|
# proxy_pass http://10.138.55.127:8004/;
|
||
|
|
# }
|
||
|
|
|
||
|
|
|
||
|
|
location /h5pro/ {
|
||
|
|
proxy_pass http://10.138.55.104:58008/h5pro/;
|
||
|
|
# proxy_pass http://10.138.55.106:58100/h5/;
|
||
|
|
}
|
||
|
|
|
||
|
|
location /h5yz/ {
|
||
|
|
proxy_pass http://10.138.55.104:58008/h5yz/;
|
||
|
|
}
|
||
|
|
#location /glweb/ {
|
||
|
|
# proxy_pass http://10.138.55.104:58008/glweb/;
|
||
|
|
#}
|
||
|
|
|
||
|
|
location /adScreen/ {
|
||
|
|
proxy_pass http://10.138.55.104:58008/adScreen/;
|
||
|
|
}
|
||
|
|
|
||
|
|
# location /tengyun-api/api/v1/android/inventory/search/material/ {
|
||
|
|
# proxy_pass http://10.138.55.104:58080/smart-canteen/api/v1/android/inventory/search/material/;
|
||
|
|
# }
|
||
|
|
|
||
|
|
|
||
|
|
location /dev-api/ {
|
||
|
|
proxy_pass http://10.138.55.104:58008/dev-api/;
|
||
|
|
proxy_redirect off;
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
}
|
||
|
|
location /canteen/dev-api/ {
|
||
|
|
proxy_pass http://10.138.55.104:58008/dev-api/;
|
||
|
|
proxy_redirect off;
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
location /statics/ {
|
||
|
|
proxy_pass http://10.138.55.104:59300/statics/;
|
||
|
|
proxy_redirect off;
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
}
|
||
|
|
|
||
|
|
location /canteen/statics/ {
|
||
|
|
proxy_pass http://10.138.55.104:59300/statics/;
|
||
|
|
proxy_redirect off;
|
||
|
|
proxy_set_header Host $host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
}
|
||
|
|
|
||
|
|
location /excelTemplete/ {
|
||
|
|
if ($request_method = 'OPTIONS') {
|
||
|
|
add_header Access-Control-Allow-Origin *;
|
||
|
|
add_header Access-Control-Allow-Methods *;
|
||
|
|
add_header Access-Control-Allow-Headers *;
|
||
|
|
return 204;
|
||
|
|
}
|
||
|
|
proxy_pass http://10.138.55.104:8888/excelTemplete/;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
server {
|
||
|
|
listen 18097;
|
||
|
|
server_name localhost;
|
||
|
|
|
||
|
|
include /usr/nginx/conf/iws_page_nginx.conf;
|
||
|
|
include /usr/nginx/conf/iws_server_nginx.conf;
|
||
|
|
|
||
|
|
location /smw/ {
|
||
|
|
proxy_pass http://10.138.55.101:21021/iws/smw/;
|
||
|
|
}
|
||
|
|
location /stw/ {
|
||
|
|
proxy_pass http://10.138.55.101:21021/iws/stw/;
|
||
|
|
}
|
||
|
|
location /hystw/ {
|
||
|
|
proxy_pass http://10.138.55.101:21021/iws/hystw/;
|
||
|
|
}
|
||
|
|
location /imw/ {
|
||
|
|
proxy_pass http://10.138.55.101:21021/iws/imw/;
|
||
|
|
}
|
||
|
|
location /ims/ {
|
||
|
|
proxy_pass http://10.138.55.101:21022/iws/ims/;
|
||
|
|
}
|
||
|
|
|
||
|
|
location /wsm-app/ {
|
||
|
|
proxy_pass http://10.138.55.101:21021/wsm-app/;
|
||
|
|
}
|
||
|
|
location /api/ {
|
||
|
|
proxy_pass http://10.138.55.102:10000/iws/api/;
|
||
|
|
}
|
||
|
|
|
||
|
|
location /sdweb/ {
|
||
|
|
proxy_pass http://10.138.55.103:21029/sdweb/;
|
||
|
|
}
|
||
|
|
location /bdsys/ {
|
||
|
|
proxy_pass http://10.138.55.103:21030/bdsys/;
|
||
|
|
}
|
||
|
|
|
||
|
|
location /XJB/ {
|
||
|
|
proxy_pass http://10.138.55.107:19091/;
|
||
|
|
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_set_header X-Forwarded-Proto $scheme;
|
||
|
|
}
|
||
|
|
location /xjb_ws {
|
||
|
|
proxy_pass http://10.138.55.107:9090/SDT_IMOA/websocket;
|
||
|
|
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_set_header X-Forwarded-Proto $scheme;
|
||
|
|
}
|
||
|
|
|
||
|
|
location /SDT_IMOA/ {
|
||
|
|
proxy_http_version 1.1;
|
||
|
|
proxy_pass http://10.138.55.107:9090/iws/SDT_IMOA/;
|
||
|
|
}
|
||
|
|
#无人机维修培训系统
|
||
|
|
location /wrjwp/ {
|
||
|
|
proxy_pass http://10.138.55.116:8090/;
|
||
|
|
}
|
||
|
|
#智慧工地万像配置-1
|
||
|
|
location /zhgdwx {
|
||
|
|
rewrite ^/zhgdwx/(.*)$ /$1 break;
|
||
|
|
proxy_pass http://10.138.55.115:2233;
|
||
|
|
}
|
||
|
|
#智慧工地万像配置-2
|
||
|
|
location /zhgdsocket {
|
||
|
|
rewrite ^/zhgdsocket/(.*)$ /$1 break;
|
||
|
|
proxy_pass http://10.138.55.115:2233;
|
||
|
|
proxy_http_version 1.1;
|
||
|
|
proxy_set_header upgrade $http_upgrade;
|
||
|
|
proxy_set_header connection "upgrade";
|
||
|
|
}
|
||
|
|
|
||
|
|
#变电分公司智慧工地
|
||
|
|
location /bdfgszhgd {
|
||
|
|
#rewrite ^/bdfgszhgd/(.*)$ /$1 break;
|
||
|
|
proxy_pass http://10.138.55.122:18080/iws/bdfgszhgd/;
|
||
|
|
proxy_read_timeout 120s;
|
||
|
|
proxy_send_timeout 120s;
|
||
|
|
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_set_header X-Forwarded-Proto $scheme;
|
||
|
|
}
|
||
|
|
|
||
|
|
#中心变智慧工地
|
||
|
|
location /zhgdzxb/ {
|
||
|
|
proxy_pass http://10.138.55.128:32459/iws/zhgdzxb/;
|
||
|
|
proxy_read_timeout 120s;
|
||
|
|
proxy_send_timeout 120s;
|
||
|
|
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_set_header X-Forwarded-Proto $scheme;
|
||
|
|
}
|
||
|
|
|
||
|
|
# 技术中心
|
||
|
|
location /jszx {
|
||
|
|
proxy_pass http://10.138.55.121:18097/jszx;
|
||
|
|
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_set_header X-Forwarded-Proto $scheme;
|
||
|
|
}
|
||
|
|
|
||
|
|
location /mea-view/ {
|
||
|
|
proxy_pass http://10.138.55.128:32519;
|
||
|
|
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 /clz-view/ {
|
||
|
|
proxy_pass http://10.138.55.128:31408;
|
||
|
|
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 /clz-api/ {
|
||
|
|
proxy_pass http://10.138.55.128:31408/iws/clz-api/;
|
||
|
|
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 /zhclz {
|
||
|
|
proxy_pass http://10.138.55.128:31408/zhclz;
|
||
|
|
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 /mea-h5/ {
|
||
|
|
proxy_pass http://10.138.55.128:32519;
|
||
|
|
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 /jiju-api/ {
|
||
|
|
proxy_pass http://10.138.55.128:32519/iws/jiju-api/;
|
||
|
|
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 /ahjiju {
|
||
|
|
proxy_pass http://10.138.55.128:32519/ahjiju;
|
||
|
|
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 ~ ^/(mall-view|h5portal|glweb|ahbns)/ {
|
||
|
|
proxy_pass http://sgcc.ah.sbd:31342;
|
||
|
|
proxy_set_header Host 'sgcc.ah.sbd:31342';
|
||
|
|
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 /proxyApi/ {
|
||
|
|
proxy_pass http://10.138.55.128:30515/iws/proxyApi/;
|
||
|
|
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 /jxhzb-api/ {
|
||
|
|
proxy_pass http://10.138.55.128:30515/iws/jxhzb-api/;
|
||
|
|
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 /sbdapi {
|
||
|
|
proxy_pass http://10.138.55.128:30493/sbdapi;
|
||
|
|
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 /gptweb {
|
||
|
|
proxy_pass http://10.138.55.128:30493/gptweb;
|
||
|
|
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 /wunanServer/ {
|
||
|
|
if ($request_method = 'OPTIONS') {
|
||
|
|
add_header Access-Control-Allow-Origin *;
|
||
|
|
add_header Access-Control-Allow-Methods *;
|
||
|
|
add_header Access-Control-Allow-Headers *;
|
||
|
|
return 204;
|
||
|
|
}
|
||
|
|
|
||
|
|
proxy_pass http://10.138.55.114:10088/wunanServer/;
|
||
|
|
}
|
||
|
|
|
||
|
|
#武南smp
|
||
|
|
location /smp/ {
|
||
|
|
if ($request_method = 'OPTIONS') {
|
||
|
|
add_header Access-Control-Allow-Origin *;
|
||
|
|
add_header Access-Control-Allow-Methods *;
|
||
|
|
add_header Access-Control-Allow-Headers *;
|
||
|
|
return 204;
|
||
|
|
}
|
||
|
|
proxy_pass http://10.138.55.114:7123/;
|
||
|
|
}
|
||
|
|
|
||
|
|
#武南bms
|
||
|
|
location /bms/ {
|
||
|
|
if ($request_method = 'OPTIONS') {
|
||
|
|
add_header Access-Control-Allow-Origin *;
|
||
|
|
add_header Access-Control-Allow-Methods *;
|
||
|
|
add_header Access-Control-Allow-Headers *;
|
||
|
|
return 204;
|
||
|
|
}
|
||
|
|
proxy_pass http://10.138.55.114:13011/;
|
||
|
|
}
|
||
|
|
|
||
|
|
#生产管控
|
||
|
|
location /aqgkApi/ {
|
||
|
|
if ($request_method = 'OPTIONS') {
|
||
|
|
add_header Access-Control-Allow-Origin *;
|
||
|
|
add_header Access-Control-Allow-Methods *;
|
||
|
|
add_header Access-Control-Allow-Headers *;
|
||
|
|
return 204;
|
||
|
|
}
|
||
|
|
proxy_pass http://10.138.55.114:21000/aqgkzx/;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
#前端服务配置
|
||
|
|
location /uavWeb1/ {
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.117:19199/uavWeb1/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 360;
|
||
|
|
}
|
||
|
|
|
||
|
|
#图片访问配置
|
||
|
|
location /pic/ {
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.119:19199/pic/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 360;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
#地图文件访问配置
|
||
|
|
location /mappic/pic/ {
|
||
|
|
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.119:19199/mappic/pic/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 360;
|
||
|
|
|
||
|
|
}
|
||
|
|
#地图文件访问配置
|
||
|
|
location /map3d/ {
|
||
|
|
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.119:19199/map3d/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 360;
|
||
|
|
|
||
|
|
}
|
||
|
|
#点云处理配置
|
||
|
|
location /pointCloudWeb/{
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.117:19199/pointCloudWeb/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 360;
|
||
|
|
|
||
|
|
add_header Access-Control-Allow-Origin *;
|
||
|
|
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
|
||
|
|
add_header Access-Control-Allow-Headers Content-Type,Authorization;
|
||
|
|
add_header Access-Control-Allow-Headers X-Requested-With;
|
||
|
|
}
|
||
|
|
#点云处理后台配置
|
||
|
|
location /pointCloud/{
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.119:8799/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 360;
|
||
|
|
|
||
|
|
add_header Access-Control-Allow-Origin *;
|
||
|
|
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
|
||
|
|
add_header Access-Control-Allow-Headers Content-Type,Authorization;
|
||
|
|
add_header Access-Control-Allow-Headers X-Requested-With;
|
||
|
|
}
|
||
|
|
|
||
|
|
#地图服务配置
|
||
|
|
location /cesiumWeb/ {
|
||
|
|
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.119:19199/cesiumWeb/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 360;
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
#后台服务配置
|
||
|
|
location /prod-api/{
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://uavIp/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 3600s;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
#操控无人机配置
|
||
|
|
location /appServer/{
|
||
|
|
proxy_http_version 1.1;
|
||
|
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
|
proxy_set_header Connection "upgrade";
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.117:19205/;
|
||
|
|
|
||
|
|
proxy_read_timeout 3600s;
|
||
|
|
|
||
|
|
proxy_send_timeout 3600s;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
#读取视频流配置
|
||
|
|
location /flvMp4/ {
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.119:18080/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 360;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
#读取机场图片配置
|
||
|
|
location /minioPic/{
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.119:19000/djjc/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 3600s;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
#定时任务配置
|
||
|
|
location /quartzServer/{
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.117:19202/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 3600s;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
#机场后台服务配置
|
||
|
|
location /djjc/dji_mqtt_srv/{
|
||
|
|
proxy_http_version 1.1;
|
||
|
|
proxy_set_header Upgrade $http_upgrade;
|
||
|
|
proxy_set_header Connection "upgrade";
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.119:16789/;
|
||
|
|
proxy_read_timeout 3600s;
|
||
|
|
proxy_send_timeout 3600s;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
location /fileServer/{
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.119:19203/droneFile/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 360;
|
||
|
|
}
|
||
|
|
|
||
|
|
location /yupontDb/{
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.119:18880/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 360;
|
||
|
|
}
|
||
|
|
|
||
|
|
location /yupontYp/{
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.119:18881/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 360;
|
||
|
|
}
|
||
|
|
|
||
|
|
location /yupontWeb/{
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.119:18885/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 360;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
location /yupontAuth/{
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.119:18886/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 360;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
location /yupontMino/{
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.119:18887/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 360;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
#error_page 404 /404.html;
|
||
|
|
|
||
|
|
# redirect server error pages to the static page /50x.html
|
||
|
|
#
|
||
|
|
error_page 500 502 503 504 /50x.html;
|
||
|
|
location = /50x.html {
|
||
|
|
root html;
|
||
|
|
}
|
||
|
|
|
||
|
|
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
||
|
|
#
|
||
|
|
#location ~ \.php$ {
|
||
|
|
# proxy_pass http://127.0.0.1;
|
||
|
|
#}
|
||
|
|
|
||
|
|
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
||
|
|
#
|
||
|
|
#location ~ \.php$ {
|
||
|
|
# root html;
|
||
|
|
# fastcgi_pass 127.0.0.1:9000;
|
||
|
|
# fastcgi_index index.php;
|
||
|
|
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
||
|
|
# include fastcgi_params;
|
||
|
|
#}
|
||
|
|
|
||
|
|
# deny access to .htaccess files, if Apache's document root
|
||
|
|
# concurs with nginx's one
|
||
|
|
#
|
||
|
|
#location ~ /\.ht {
|
||
|
|
# deny all;
|
||
|
|
#}
|
||
|
|
}
|
||
|
|
|
||
|
|
#无人机施工存储服务minio
|
||
|
|
server {
|
||
|
|
listen 19000;
|
||
|
|
#应改为i皖送nginx IP
|
||
|
|
server_name 10.138.55.14;
|
||
|
|
#charset koi8-r;
|
||
|
|
|
||
|
|
#access_log logs/host.access.log main;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
proxy_set_header Host $http_host;
|
||
|
|
proxy_set_header X-Real-IP $remote_addr;
|
||
|
|
proxy_set_header REMOTE-HOST $remote_addr;
|
||
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||
|
|
proxy_pass http://10.138.55.119:19000/;
|
||
|
|
error_page 405 =200 @405;
|
||
|
|
proxy_read_timeout 3600s;
|
||
|
|
}
|
||
|
|
|
||
|
|
error_page 500 502 503 504 /50x.html;
|
||
|
|
location = /50x.html {
|
||
|
|
root html;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
# another virtual host using mix of IP-, name-, and port-based configuration
|
||
|
|
#
|
||
|
|
#server {
|
||
|
|
# listen 8000;
|
||
|
|
# listen somename:8080;
|
||
|
|
# server_name somename alias another.alias;
|
||
|
|
|
||
|
|
# location / {
|
||
|
|
# root html;
|
||
|
|
# index index.html index.htm;
|
||
|
|
# }
|
||
|
|
#}
|
||
|
|
|
||
|
|
|
||
|
|
# HTTPS server
|
||
|
|
#
|
||
|
|
#server {
|
||
|
|
# listen 443 ssl;
|
||
|
|
# server_name localhost;
|
||
|
|
|
||
|
|
# ssl_certificate cert.pem;
|
||
|
|
# ssl_certificate_key cert.key;
|
||
|
|
|
||
|
|
# ssl_session_cache shared:SSL:1m;
|
||
|
|
# ssl_session_timeout 5m;
|
||
|
|
|
||
|
|
# ssl_ciphers HIGH:!aNULL:!MD5;
|
||
|
|
# ssl_prefer_server_ciphers on;
|
||
|
|
|
||
|
|
# location / {
|
||
|
|
# root html;
|
||
|
|
# index index.html index.htm;
|
||
|
|
# }
|
||
|
|
#}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
stream {
|
||
|
|
upstream datacentercloudsocket {
|
||
|
|
hash $remote_addr consistent;
|
||
|
|
server 192.168.1.168:13306 weight=5 max_fails=3 fail_timeout=30s;
|
||
|
|
}
|
||
|
|
|
||
|
|
upstream i8cloudsocket {
|
||
|
|
hash $remote_addr consistent;
|
||
|
|
server 172.20.10.100:1433 weight=5 max_fails=3 fail_timeout=30s;
|
||
|
|
}
|
||
|
|
|
||
|
|
upstream datacenterredis {
|
||
|
|
hash $remote_addr consistent;
|
||
|
|
server 192.168.1.168:16379 weight=5 max_fails=3 fail_timeout=30s;
|
||
|
|
}
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 28701;
|
||
|
|
proxy_connect_timeout 10s;
|
||
|
|
proxy_timeout 300s;
|
||
|
|
proxy_pass datacentercloudsocket;
|
||
|
|
}
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 28702;
|
||
|
|
proxy_connect_timeout 10s;
|
||
|
|
proxy_timeout 300s;
|
||
|
|
proxy_pass i8cloudsocket;
|
||
|
|
}
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 28703;
|
||
|
|
proxy_connect_timeout 10s;
|
||
|
|
proxy_timeout 300s;
|
||
|
|
proxy_pass datacenterredis;
|
||
|
|
}
|
||
|
|
|
||
|
|
#无人机施工mqtt
|
||
|
|
upstream mqtt_1883 {
|
||
|
|
server 10.138.55.119:1883;
|
||
|
|
}
|
||
|
|
|
||
|
|
server {
|
||
|
|
listen 1883;
|
||
|
|
proxy_pass mqtt_1883;
|
||
|
|
proxy_connect_timeout 1s;
|
||
|
|
}
|
||
|
|
|
||
|
|
upstream mqtt_8083 {
|
||
|
|
server 10.138.55.119:8083;
|
||
|
|
}
|
||
|
|
# 运检设备采集
|
||
|
|
#server {
|
||
|
|
# listen 8083;
|
||
|
|
# proxy_pass 10.138.55.127:19092;
|
||
|
|
# proxy_connect_timeout 1s;
|
||
|
|
#}
|
||
|
|
|
||
|
|
#运检设备采集
|
||
|
|
upstream sbcg_8083 {
|
||
|
|
server 10.138.55.127:19092;
|
||
|
|
}
|
||
|
|
server {
|
||
|
|
listen 8083;
|
||
|
|
proxy_pass sbcg_8083;
|
||
|
|
proxy_connect_timeout 300s;
|
||
|
|
}
|
||
|
|
|
||
|
|
upstream sbcg_8093 {
|
||
|
|
server 10.138.55.127:19093;
|
||
|
|
}
|
||
|
|
server {
|
||
|
|
listen 8093;
|
||
|
|
proxy_pass sbcg_8093;
|
||
|
|
proxy_connect_timeout 300s;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
upstream qn_9000 {
|
||
|
|
server 10.138.55.127:9000;
|
||
|
|
}
|
||
|
|
server {
|
||
|
|
listen 9000;
|
||
|
|
proxy_pass qn_9000;
|
||
|
|
proxy_connect_timeout 1s;
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|