Nginx 配置
server {
listen 8000;
server_name localhost;
location / {
root D:/Project/guns/dist;
index index.html index.htm;
}
location /api/ {
proxy_pass http://localhost:8118/;
}
location /warehouse/ {
proxy_pass http://localhost:8168/warehouse/;
}
}
三个location分别配置的是前端、后端、WEB三维