fix(training): 通过 health 代理路径提供证书样本

This commit is contained in:
lik
2026-11-03 20:22:59 +08:00
parent c4330e9c77
commit 3184f64a76
+3
View File
@@ -46,6 +46,9 @@ class APP {
this.app.proxy = true;
this.app.proxyIpHeader = "X-Real-IP";
// 线上 nginx 只代理 /health 与 /user;保留 /static 供本机访问,
// 同时提供 /health/static,避免独立 /static 请求落到其他服务的默认响应
this.app.use(mount('/health/static', serve(STATIC_DIR)));
this.app.use(mount('/static', serve(STATIC_DIR)));
this.app.use(cors());
this.app.use((ctx, next) => {