From 4754fc03a765c0726ed11ae286c2e1978bba7981 Mon Sep 17 00:00:00 2001 From: qaq Date: Fri, 26 Sep 2025 19:34:11 +0800 Subject: [PATCH] =?UTF-8?q?x=E4=BF=AE=E5=A4=8D=E5=8F=8D=E4=BB=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite-frontend/nginx.conf | 17 +++++++++++++++++ vite-frontend/src/config/site.ts | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/vite-frontend/nginx.conf b/vite-frontend/nginx.conf index e384fe0..e832412 100644 --- a/vite-frontend/nginx.conf +++ b/vite-frontend/nginx.conf @@ -63,6 +63,23 @@ http { proxy_pass http://backend:6365/api/v1/; } + # 流量与配置上报接口反向代理 + location /flow/upload { + 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; + proxy_pass http://backend:6365/flow/upload; + } + + location /flow/config { + 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; + proxy_pass http://backend:6365/flow/config; + } + # WebSocket代理 - system-info location /system-info { proxy_pass http://backend:6365/system-info; diff --git a/vite-frontend/src/config/site.ts b/vite-frontend/src/config/site.ts index 9b86da8..beb56fd 100644 --- a/vite-frontend/src/config/site.ts +++ b/vite-frontend/src/config/site.ts @@ -4,7 +4,7 @@ export type SiteConfig = typeof siteConfig; // 缓存相关常量 const CACHE_PREFIX = 'vite_config_'; -const VERSION = "1.3.5"; +const VERSION = "1.4.0"; const APP_VERSION = "1.0.3"; const getInitialConfig = () => {