feat:更新nginx配置文件

This commit is contained in:
2025-10-16 22:23:56 +08:00
parent 416abfbd6d
commit a94d4f8fac
2 changed files with 25 additions and 1 deletions

View File

@@ -31,6 +31,14 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
}
location /food-hub/ {
proxy_pass http://host.docker.internal:85/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /home-api/ {
proxy_pass http://host.docker.internal:8081/;
}
@@ -39,6 +47,10 @@ server {
proxy_pass http://host.docker.internal:8082/;
}
location /food-api/ {
proxy_pass http://host.docker.internal:8083/;
}
location / {
try_files $uri $uri/ =404;
}