|
|
@ -1,8 +1,10 @@
|
|
|
|
server {
|
|
|
|
server {
|
|
|
|
listen 90;
|
|
|
|
listen 80;
|
|
|
|
server_name localhost;
|
|
|
|
server_name localhost;
|
|
|
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
|
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
|
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
|
|
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
|
|
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
location / {
|
|
|
|
root /home/xydl/jkpg/static;
|
|
|
|
root /home/xydl/jkpg/static;
|
|
|
@ -13,16 +15,12 @@ server {
|
|
|
|
proxy_pass http://127.0.0.1:8080/;
|
|
|
|
proxy_pass http://127.0.0.1:8080/;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
location /data/sftp/picbak {
|
|
|
|
|
|
|
|
root /;
|
|
|
|
|
|
|
|
index index.html index.htm;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
location /api/sysLoginRemoteController/login {
|
|
|
|
location /filestore {
|
|
|
|
proxy_pass http://192.168.50.200:8080/sysLoginRemoteController/login;
|
|
|
|
alias /home/xydl/jkpg/filestore;
|
|
|
|
|
|
|
|
autoindex on;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
location /api/modelFile/ {
|
|
|
|
|
|
|
|
proxy_pass http://192.168.50.200:8022/;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|