mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
perf: 更新certd本身的证书文档说明
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user