Context
Stage FRP 验收:面板 HTML 经 frp 已 200,但 /api/* 全部 forbidden。dsh 在 Host 为 cmp-*-cag-*.frp.internal 时拒绝 API;Host 为 127.0.0.1 或 computer-staging.apemind.ai 时正常。frps 按 customDomain 路由,进容器的 Host 必须是 *.frp.internal,除非 frpc 改写。
产品:用 frpc hostHeaderRewrite 改回面板域名。不要放行 .frp.internal。
Scope
- desired/env 下发
host_header(面板 Host,如 computer-staging.apemind.ai)
_render_frpc 在每个 HTTP proxy 写 hostHeaderRewrite
- 无
host_header 时不写该行(不放行 frp.internal)
- 回归:有/无 rewrite、转义
Out of scope
Accept
- 带
host_header 的 frpc.toml 含 hostHeaderRewrite = "<host>"
- 无该字段时配置不含 rewrite
Context
Stage FRP 验收:面板 HTML 经 frp 已 200,但
/api/*全部forbidden。dsh 在 Host 为cmp-*-cag-*.frp.internal时拒绝 API;Host 为127.0.0.1或computer-staging.apemind.ai时正常。frps 按 customDomain 路由,进容器的 Host 必须是*.frp.internal,除非 frpc 改写。产品:用 frpc
hostHeaderRewrite改回面板域名。不要放行.frp.internal。Scope
host_header(面板 Host,如computer-staging.apemind.ai)_render_frpc在每个 HTTP proxy 写hostHeaderRewritehost_header时不写该行(不放行 frp.internal)Out of scope
Accept
host_header的 frpc.toml 含hostHeaderRewrite = "<host>"