diff --git a/src/config/config.default.ts b/src/config/config.default.ts index ecf330c..d47ebf4 100644 --- a/src/config/config.default.ts +++ b/src/config/config.default.ts @@ -10,7 +10,7 @@ import { availablePort } from '../comm/port'; export default { // 确保每个项目唯一,项目首次启动会自动生成 - keys: '142f85f6-0868-4266-b230-fd05fed4e18c', + keys: 'cool-admin-keys-xxxxxx', koa: { port: availablePort(8001), }, @@ -64,12 +64,6 @@ export default { // }, // }, cool: { - redis: { - host: '127.0.0.1', - port: 6379, - password: '', - db: 0, - }, // 已经插件化,本地文件上传查看 plugin/config.ts,其他云存储查看对应插件的使用 file: {}, // 是否开启多租户 diff --git a/src/configuration.ts b/src/configuration.ts index 814215b..116ab6a 100644 --- a/src/configuration.ts +++ b/src/configuration.ts @@ -18,7 +18,7 @@ import * as LocalConfig from './config/config.local'; import * as ProdConfig from './config/config.prod'; import * as cool from '@cool-midway/core'; import * as upload from '@midwayjs/upload'; -import * as task from '@cool-midway/task'; +// import * as task from '@cool-midway/task'; // import * as rpc from '@cool-midway/rpc'; @Configuration({ @@ -42,7 +42,7 @@ import * as task from '@cool-midway/task'; // rpc 微服务 远程调用 // rpc, // 任务与队列 - task, + // task, { component: info, enabledEnvironment: ['local', 'prod'], diff --git a/src/modules/base/config.ts b/src/modules/base/config.ts index 942cc14..8e4df51 100644 --- a/src/modules/base/config.ts +++ b/src/modules/base/config.ts @@ -27,7 +27,7 @@ export default () => { // 单点登录 sso: false, // 注意: 最好重新修改,防止破解 - secret: 'b621502b-15aa-44e8-95bb-03710c7271f9', + secret: 'cool-admin-xxxxxx', // token token: { // 2小时过期,需要用刷新token diff --git a/src/modules/user/config.ts b/src/modules/user/config.ts index 779ca40..f0e14f3 100644 --- a/src/modules/user/config.ts +++ b/src/modules/user/config.ts @@ -28,7 +28,7 @@ export default () => { // 刷新token 过期时间,单位秒 refreshExpire: 60 * 60 * 24 * 30, // jwt 秘钥 - secret: '0ffb82cd-c4ec-47d0-8d4c-fe4f5e5d7713x', + secret: 'cool-app-xxxxxx', }, } as ModuleConfig; };