perf: 更新certd本身的证书文档说明

This commit is contained in:
xiaojunnuo
2024-10-26 17:14:55 +08:00
parent d5a17f9e6a
commit 0c50ede129
13 changed files with 44 additions and 12 deletions

View File

@@ -13,10 +13,7 @@ export type HttpsServerOptions = {
};
export async function startHttpsServer(opts: HttpsServerOptions) {
// const httpsServer = https.createServer({
// key: fs.readFileSync(path.join(__dirname, '../ssl/2_certd.cn.key')),
// cert
logger.info('=========================================');
if (!opts.key || !opts.cert) {
logger.error('证书路径未配置无法启动https服务请先配置koa.https.key和koa.https.cert');
return;

View File

@@ -30,7 +30,7 @@ export class RestartCertdPlugin extends AbstractTaskPlugin {
}
this.logger.info(`Certd 将在 ${this.delay} 秒后关闭`);
setTimeout(() => {
this.logger.info('重启 Certd');
this.logger.info('关闭 Certd');
process.exit(1);
}, this.delay * 1000);
}