This commit is contained in:
xiaojunnuo
2024-10-10 17:50:04 +08:00
parent 81fac736f9
commit 0e4b72c65d
5 changed files with 24 additions and 14 deletions
+11 -11
View File
@@ -21,19 +21,19 @@ typeorm:
dataSource:
default:
database: './data/db-comm.sqlite'
#plus:
# server:
# baseUrls: ['https://api.ai.handsfree.work', 'https://api.ai.docmirror.cn']
#
#account:
# server:
# baseUrl: 'https://ai.handsfree.work/subject'
plus:
server:
baseUrls: ['http://127.0.0.1:11007']
baseUrls: ['https://api.ai.handsfree.work', 'https://api.ai.docmirror.cn']
account:
server:
baseUrl: 'http://127.0.0.1:1017/subject'
baseUrl: 'https://ai.handsfree.work/subject'
#plus:
# server:
# baseUrls: ['http://127.0.0.1:11007']
#
#account:
# server:
# baseUrl: 'http://127.0.0.1:1017/subject'
@@ -37,6 +37,12 @@ const development = {
'/': '/index.html',
},
},
// '/index.html': {
// maxAge: 0,
// },
// '/': {
// maxAge: 0,
// },
},
},
cron: {
@@ -54,7 +54,11 @@ export class AutoInitSite {
}
// 授权许可
await this.plusService.verify();
try {
await this.plusService.verify();
} catch (e) {
logger.error('授权许可验证失败', e);
}
logger.info('初始化站点完成');
}