Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf-h5
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jianan
yd-csf-h5
Commits
7b68f4ea
Commit
7b68f4ea
authored
Oct 26, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: 注释明确门户 API 直连 9202、勿改回 9002 网关的原因
parent
c149a0ce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
deploy/nginx-center.zuihuibi.cn.conf
+8
-2
No files found.
deploy/nginx-center.zuihuibi.cn.conf
View file @
7b68f4ea
...
@@ -13,9 +13,15 @@ server {
...
@@ -13,9 +13,15 @@ server {
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
X
-
Forwarded
-
Proto
$
scheme
;
proxy_set_header
X
-
Forwarded
-
Proto
$
scheme
;
# 接口 → CSF 核心服务。proxy_pass 只写到端口,/csf/api 前缀原样透传,不 rewrite
# ============ 转介人门户 API(勿改回 9002 网关)============
# 本门户使用 Casdoor OIDC 登录,由 yd-csf-api 内的转介人专用认证链
# (ReferrerPortalSecurityConfig,仅匹配 /c/**)自行验签并解析身份,认证不依赖网关。
# 9002 是内勤体系网关,其统一 JWT 校验不认 Casdoor 签发方,指过去会返回
# “令牌无效:不支持的JWT令牌”,表现为登录后接口全 401、前端循环跳转。
# 若将来必须走网关,须先让网关信任 Casdoor 的 jwks/issuer/aud,而不是改这一行。
# proxy_pass 只写到端口,/csf/api 前缀原样透传,不 rewrite;后端自带 /csf/api context-path。
location
/
csf
/
api
/ {
location
/
csf
/
api
/ {
proxy_pass
http
://
127
.
0
.
0
.
1
:
9
0
02
;
proxy_pass
http
://
127
.
0
.
0
.
1
:
9
2
02
;
}
}
# 其余全部 → H5 容器(Jenkins 构建时映射的端口,见 deploy/jenkins-execute-shell.sh)
# 其余全部 → H5 容器(Jenkins 构建时映射的端口,见 deploy/jenkins-execute-shell.sh)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment