2
0

fix: nginx html dir & conf

This commit is contained in:
2024-12-04 11:35:36 +08:00
parent 16d2282681
commit 88d73a1a05
2 changed files with 8 additions and 8 deletions

View File

@@ -15,14 +15,14 @@ cp ../sql/wfc_user_db/wfc_user_db.sql ./mysql/db
# copy html # copy html
echo "begin copy system html " echo "begin copy system html "
mkdir -p ./nginx/html/sys mkdir -p ./nginx/html/dist/sys
rm -rf ./nginx/html/sys rm -rf ./nginx/html/dist/sys
cp -rf ../../fe.wfc/dist ./nginx/html/sys cp -rf ../../fe.wfc/dist ./nginx/html/dist/sys/
echo "begin copy user html " echo "begin copy user html "
mkdir -p ./nginx/html/u mkdir -p ./nginx/html/dist/u
rm -rf ./nginx/html/u rm -rf ./nginx/html/dist/u
cp -rf ../../fe.wfc.user/dist ./nginx/html/u cp -rf ../../fe.wfc.user/dist/* ./nginx/html/dist/u/
# copy jar # copy jar
echo "begin copy wfc-gateway " echo "begin copy wfc-gateway "

View File

@@ -25,7 +25,7 @@ http {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://wfc-gateway:8080/; proxy_pass http://192.168.2.248:8080/;
} }
location /u { location /u {
@@ -39,7 +39,7 @@ http {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://wfc-gateway:8080/; proxy_pass http://192.168.2.248:8080/;
} }
# 避免actuator暴露 # 避免actuator暴露