perf(certd-server): 使用 jks-go转换jks证书,大幅精简镜像大小

This commit is contained in:
xiaojunnuo
2026-07-07 00:12:37 +08:00
parent 20cfe74b17
commit c78898e4c1
6 changed files with 117 additions and 20 deletions
+1
View File
@@ -1,2 +1,3 @@
LEGO_VERSION=4.30.1
JKS_GO_VERSION=1.0.3
certd_plugin_loadmode=dev
+1
View File
@@ -20,6 +20,7 @@ run/
.env.pgpl.yaml
tools/lego/*
tools/jks-go
!tools/lego/readme.md
test.mjs
isolate-*.log
@@ -132,5 +132,7 @@ export class MainConfiguration {
logger.info(text);
});
logger.info("当前环境:", this.app.getEnv()); // prod
}
}
@@ -100,7 +100,7 @@ export abstract class CertApplyBaseConvertPlugin extends AbstractTaskPlugin {
}
this._result.pipelinePrivateVars.cert = cert;
if (isNew || !cert.pfx) {
if (isNew || !cert.pfx || !cert.der || !cert.jks || !cert.p7b) {
try {
const converter = new CertConverter({ logger: this.logger });
const res = await converter.convert({