From 65afb933c9e6ae15d73e44fc90064c39e34eeb18 Mon Sep 17 00:00:00 2001 From: yidl Date: Sun, 29 Jun 2025 01:36:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx.conf.gateway | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/nginx.conf.gateway b/nginx.conf.gateway index f2afd33..f8b04ed 100644 --- a/nginx.conf.gateway +++ b/nginx.conf.gateway @@ -133,7 +133,7 @@ http { # 其他标准代理头 proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - + proxy_redirect https://sys_api/Account/ https://$host:$server_port/Account/; } @@ -162,6 +162,12 @@ http { proxy_pass http://lmg_ui/; } + # 6. OAuth 回调地址路由 + # 这个回调是给客户端(UI)的,这里我们假设它由 sys-ui 处理 + location = /Callback { + # 将 /Callback -> http://sys_ui/Callback + proxy_pass http://sys_ui; + } # 5. Sys UI 和根路径路由 # IMPORTANT: sys-ui 的前端路由基础路径(base path)需要配置为 / # 或者如果你想用 /sys/ 访问,则前端基础路径配 /sys/ @@ -171,11 +177,5 @@ http { proxy_pass http://sys_ui; } - # 6. OAuth 回调地址路由 - # 这个回调是给客户端(UI)的,这里我们假设它由 sys-ui 处理 - location = /Callback { - # 将 /Callback -> http://sys_ui/Callback - proxy_pass http://sys_ui; - } } }