perf: 支持同时监听https端口,7002

This commit is contained in:
xiaojunnuo
2024-10-26 16:36:57 +08:00
parent 4b09a0a27f
commit d5a17f9e6a
7 changed files with 132 additions and 3 deletions
@@ -1,5 +1,6 @@
import { App, Configuration } from '@midwayjs/core';
import * as koa from '@midwayjs/koa';
import { IMidwayKoaContext, NextFunction } from '@midwayjs/koa';
import * as orm from '@midwayjs/typeorm';
import * as cache from '@midwayjs/cache';
import * as validate from '@midwayjs/validate';
@@ -18,7 +19,7 @@ import * as libServer from '@certd/lib-server';
import * as commercial from '@certd/commercial-core';
import * as upload from '@midwayjs/upload';
import { setLogger } from '@certd/acme-client';
import { IMidwayKoaContext, NextFunction } from '@midwayjs/koa';
process.on('uncaughtException', error => {
console.error('未捕获的异常:', error);
// 在这里可以添加日志记录、发送错误通知等操作