mirror of
https://github.com/certd/certd.git
synced 2026-07-24 12:37:35 +08:00
perf: 支持设置默认的证书申请地址的反向代理
This commit is contained in:
@@ -458,6 +458,7 @@ export class CertApplyPlugin extends CertApplyBasePlugin {
|
||||
this.eab = eab;
|
||||
const subDomainsGetter = await this.ctx.serviceGetter.get<ISubDomainsGetter>("subDomainsGetter");
|
||||
const domainParser = new DomainParser(subDomainsGetter, this.logger);
|
||||
|
||||
this.acme = new AcmeService({
|
||||
userId: this.ctx.user.id,
|
||||
userContext: this.userContext,
|
||||
@@ -673,6 +674,12 @@ export class CertApplyPlugin extends CertApplyBasePlugin {
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
async onGetReverseProxyList() {
|
||||
const sysSettingsService:any = await this.ctx.serviceGetter.get("sysSettingsService");
|
||||
const sysSettings = await sysSettingsService.getPrivateSettings();
|
||||
return sysSettings.reverseProxyList || []
|
||||
}
|
||||
}
|
||||
|
||||
new CertApplyPlugin();
|
||||
|
||||
Reference in New Issue
Block a user