2
0

feat: nginx文件配置

This commit is contained in:
caiyuchao
2025-03-12 17:51:47 +08:00
parent 8fda834249
commit 08d94cc344
2 changed files with 9 additions and 1 deletions

View File

@@ -162,7 +162,7 @@ services:
- "9300:9300"
volumes:
- ./wfc/modules/file/jar/wfc-modules-file.jar:/opt/wfc/wfc-modules-file.jar
- ./wfc/upload:/opt/wfc/upload
- ./nginx/html/dist/img:/opt/wfc/upload
environment:
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}

View File

@@ -20,6 +20,14 @@ http {
index index.html index.htm;
}
location /img {
alias /opt/wfc/portal/img;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
location /sys-api/{
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;