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;