fix:调整
parent
379011c0db
commit
ec24992ba5
@ -1,28 +1,26 @@
|
|||||||
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;
|
||||||
index index.html;
|
index index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /jkpg-api/ {
|
location /jkpg-api/ {
|
||||||
proxy_pass http://127.0.0.1:8080/;
|
proxy_pass http://127.0.0.1:8080/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /data/sftp/picbak {
|
|
||||||
root /;
|
location /filestore {
|
||||||
index index.html index.htm;
|
alias /home/xydl/jkpg/filestore;
|
||||||
}
|
autoindex on;
|
||||||
|
|
||||||
location /api/sysLoginRemoteController/login {
|
|
||||||
proxy_pass http://192.168.50.200:8080/sysLoginRemoteController/login;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /api/modelFile/ {
|
|
||||||
proxy_pass http://192.168.50.200:8022/;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue