2
0

update docker env

This commit is contained in:
2024-12-03 09:51:01 +08:00
parent 65e17f074e
commit 8ad015968f
6 changed files with 36 additions and 15 deletions

View File

@@ -14,18 +14,32 @@ http {
listen 80;
server_name localhost;
location / {
root /home/wfc/projects/wfc-ui;
location /sys {
root /home/wfc/portal;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
location /prod-api/{
location /sys-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://192.168.2.248:8080/;
proxy_pass http://wfc-gateway:8080/;
}
location /u {
root /home/wfc/portal;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
location /u-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://wfc-gateway:8080/;
}
# 避免actuator暴露