mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-12 01:02:50 +00:00
fix update
This commit is contained in:
parent
f8e981faaa
commit
943b8f026d
12
package.json
12
package.json
@ -4,9 +4,9 @@
|
|||||||
"description": "一个很酷的Ai快速开发框架",
|
"description": "一个很酷的Ai快速开发框架",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@cool-midway/core": "8.0.1",
|
"@cool-midway/core": "8.0.3",
|
||||||
"@cool-midway/rpc": "8.0.1",
|
"@cool-midway/rpc": "8.0.1",
|
||||||
"@cool-midway/task": "8.0.1",
|
"@cool-midway/task": "8.0.2",
|
||||||
"@midwayjs/bootstrap": "^3.20.3",
|
"@midwayjs/bootstrap": "^3.20.3",
|
||||||
"@midwayjs/cache-manager": "^3.20.3",
|
"@midwayjs/cache-manager": "^3.20.3",
|
||||||
"@midwayjs/core": "^3.20.3",
|
"@midwayjs/core": "^3.20.3",
|
||||||
@ -20,14 +20,14 @@
|
|||||||
"@midwayjs/upload": "^3.20.3",
|
"@midwayjs/upload": "^3.20.3",
|
||||||
"@midwayjs/validate": "^3.20.3",
|
"@midwayjs/validate": "^3.20.3",
|
||||||
"adm-zip": "^0.5.16",
|
"adm-zip": "^0.5.16",
|
||||||
"axios": "^1.8.2",
|
"axios": "^1.8.4",
|
||||||
"cron": "^4.1.0",
|
"cron": "^4.1.3",
|
||||||
"download": "^8.0.0",
|
"download": "^8.0.0",
|
||||||
"jsonwebtoken": "^9.0.2",
|
"jsonwebtoken": "^9.0.2",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"md5": "^2.3.0",
|
"md5": "^2.3.0",
|
||||||
"moment": "^2.30.1",
|
"moment": "^2.30.1",
|
||||||
"mysql2": "^3.13.0",
|
"mysql2": "^3.14.0",
|
||||||
"svg-captcha": "^1.4.0",
|
"svg-captcha": "^1.4.0",
|
||||||
"tslib": "^2.8.1",
|
"tslib": "^2.8.1",
|
||||||
"typeorm": "npm:@cool-midway/typeorm@0.3.20",
|
"typeorm": "npm:@cool-midway/typeorm@0.3.20",
|
||||||
@ -45,7 +45,7 @@
|
|||||||
"mwts": "^1.3.0",
|
"mwts": "^1.3.0",
|
||||||
"mwtsc": "^1.15.1",
|
"mwtsc": "^1.15.1",
|
||||||
"rimraf": "^6.0.1",
|
"rimraf": "^6.0.1",
|
||||||
"ts-jest": "^29.2.6",
|
"ts-jest": "^29.3.0",
|
||||||
"typescript": "~5.8.2"
|
"typescript": "~5.8.2"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
|||||||
@ -10,7 +10,7 @@ import { availablePort } from '../comm/port';
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
// 确保每个项目唯一,项目首次启动会自动生成
|
// 确保每个项目唯一,项目首次启动会自动生成
|
||||||
keys: 'cool-admin-keys-xxxxxx',
|
keys: '142f85f6-0868-4266-b230-fd05fed4e18c',
|
||||||
koa: {
|
koa: {
|
||||||
port: availablePort(8001),
|
port: availablePort(8001),
|
||||||
},
|
},
|
||||||
@ -64,6 +64,12 @@ export default {
|
|||||||
// },
|
// },
|
||||||
// },
|
// },
|
||||||
cool: {
|
cool: {
|
||||||
|
redis: {
|
||||||
|
host: '127.0.0.1',
|
||||||
|
port: 6379,
|
||||||
|
password: '',
|
||||||
|
db: 0,
|
||||||
|
},
|
||||||
// 已经插件化,本地文件上传查看 plugin/config.ts,其他云存储查看对应插件的使用
|
// 已经插件化,本地文件上传查看 plugin/config.ts,其他云存储查看对应插件的使用
|
||||||
file: {},
|
file: {},
|
||||||
// 是否开启多租户
|
// 是否开启多租户
|
||||||
|
|||||||
@ -18,7 +18,7 @@ import * as LocalConfig from './config/config.local';
|
|||||||
import * as ProdConfig from './config/config.prod';
|
import * as ProdConfig from './config/config.prod';
|
||||||
import * as cool from '@cool-midway/core';
|
import * as cool from '@cool-midway/core';
|
||||||
import * as upload from '@midwayjs/upload';
|
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';
|
// import * as rpc from '@cool-midway/rpc';
|
||||||
|
|
||||||
@Configuration({
|
@Configuration({
|
||||||
@ -42,7 +42,7 @@ import * as upload from '@midwayjs/upload';
|
|||||||
// rpc 微服务 远程调用
|
// rpc 微服务 远程调用
|
||||||
// rpc,
|
// rpc,
|
||||||
// 任务与队列
|
// 任务与队列
|
||||||
// task,
|
task,
|
||||||
{
|
{
|
||||||
component: info,
|
component: info,
|
||||||
enabledEnvironment: ['local', 'prod'],
|
enabledEnvironment: ['local', 'prod'],
|
||||||
|
|||||||
@ -27,7 +27,7 @@ export default () => {
|
|||||||
// 单点登录
|
// 单点登录
|
||||||
sso: false,
|
sso: false,
|
||||||
// 注意: 最好重新修改,防止破解
|
// 注意: 最好重新修改,防止破解
|
||||||
secret: 'cool-admin-xxxxxx',
|
secret: 'b621502b-15aa-44e8-95bb-03710c7271f9',
|
||||||
// token
|
// token
|
||||||
token: {
|
token: {
|
||||||
// 2小时过期,需要用刷新token
|
// 2小时过期,需要用刷新token
|
||||||
|
|||||||
@ -28,7 +28,7 @@ export default () => {
|
|||||||
// 刷新token 过期时间,单位秒
|
// 刷新token 过期时间,单位秒
|
||||||
refreshExpire: 60 * 60 * 24 * 30,
|
refreshExpire: 60 * 60 * 24 * 30,
|
||||||
// jwt 秘钥
|
// jwt 秘钥
|
||||||
secret: 'cool-app-xxxxxx',
|
secret: '0ffb82cd-c4ec-47d0-8d4c-fe4f5e5d7713x',
|
||||||
},
|
},
|
||||||
} as ModuleConfig;
|
} as ModuleConfig;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user