docker配置文件更新

This commit is contained in:
kerwincui
2022-03-22 17:03:10 +08:00
parent 7a7e9827ca
commit 3253ef9ab4
9 changed files with 109 additions and 113 deletions

View File

@@ -26,7 +26,7 @@ http {
charset utf-8;
location / {
root /var/data/wumei/vue;
root /var/wumei-smart/vue;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
@@ -37,7 +37,15 @@ http {
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8080/;
}
}
location /api/v4/ {
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://localhost:8081/api/v4/;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {