mirror of
https://github.com/certd/certd.git
synced 2026-04-19 09:00:53 +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;
|
||||
|
||||
Reference in New Issue
Block a user