feat: nginx文件配置
This commit is contained in:
@@ -162,7 +162,7 @@ services:
|
|||||||
- "9300:9300"
|
- "9300:9300"
|
||||||
volumes:
|
volumes:
|
||||||
- ./wfc/modules/file/jar/wfc-modules-file.jar:/opt/wfc/wfc-modules-file.jar
|
- ./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:
|
environment:
|
||||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||||
|
|||||||
@@ -20,6 +20,14 @@ http {
|
|||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /img {
|
||||||
|
alias /opt/wfc/portal/img;
|
||||||
|
|
||||||
|
autoindex on;
|
||||||
|
autoindex_exact_size off;
|
||||||
|
autoindex_localtime on;
|
||||||
|
}
|
||||||
|
|
||||||
location /sys-api/{
|
location /sys-api/{
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|||||||
Reference in New Issue
Block a user