fix: nginx

This commit is contained in:
louis 2024-03-28 13:35:01 +08:00
parent 59831c32ba
commit ad26208dfb
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ http {
# 后端服务
location /api/ {
location ^~ /api/ {
proxy_pass http://huaxin-admin-server:8001/api/; # 转发规则
proxy_set_header Host $proxy_host; # 修改转发请求头,让目标应用可以受到真实的请求
proxy_set_header X-Real-IP $remote_addr;
@ -81,7 +81,7 @@ http {
proxy_http_version 1.1;
}
# 文件访问
location /upload/ {
location ^~ /upload/ {
proxy_pass http://huaxin-admin-server:8001/upload/;
proxy_set_header Host $proxy_host; # 修改转发请求头,让目标应用可以受到真实的请求
proxy_set_header X-Real-IP $remote_addr;