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; - } } }