From a94d4f8facbadd4e81087a587a786e25d37a39d7 Mon Sep 17 00:00:00 2001 From: Cxx0822 <1556464090@qq.com> Date: Thu, 16 Oct 2025 22:23:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=9B=B4=E6=96=B0nginx=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf | 12 ++++++++++++ src/App.vue | 14 +++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 72a6ae0..fa76afd 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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; } diff --git a/src/App.vue b/src/App.vue index 00b14f0..e5700e9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -48,13 +48,19 @@