Compare commits

..
1 Commits
Author SHA1 Message Date
lik 3184f64a76 fix(training): 通过 health 代理路径提供证书样本 2026-11-03 20:22:59 +08:00
+3
View File
@@ -46,6 +46,9 @@ class APP {
this.app.proxy = true; this.app.proxy = true;
this.app.proxyIpHeader = "X-Real-IP"; 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(mount('/static', serve(STATIC_DIR)));
this.app.use(cors()); this.app.use(cors());
this.app.use((ctx, next) => { this.app.use((ctx, next) => {