Pārlūkot izejas kodu

更新配置文件中的密钥和数据库连接信息

wuer 1 mēnesi atpakaļ
vecāks
revīzija
d0422ea927

+ 1 - 1
src/config/config.default.ts

@@ -10,7 +10,7 @@ import { availablePort } from '../comm/port';
 
 export default {
   // 确保每个项目唯一,项目首次启动会自动生成
-  keys: 'cool-admin-keys-xxxxxx',
+  keys: '42b42cf7-72cf-4b0f-85a5-93ca3e96992a',
   koa: {
     port: availablePort(8001),
   },

+ 4 - 4
src/config/config.local.ts

@@ -10,11 +10,11 @@ export default {
     dataSource: {
       default: {
         type: 'mysql',
-        host: '127.0.0.1',
+        host: '119.27.178.17',
         port: 3306,
-        username: 'root',
-        password: '123456',
-        database: 'cool',
+        username: 'myuser',
+        password: 'mypassword',
+        database: 'test',
         // 自动建表 注意:线上部署的时候不要使用,有可能导致数据丢失
         synchronize: true,
         // 打印日志

+ 1 - 1
src/modules/base/config.ts

@@ -27,7 +27,7 @@ export default () => {
       // 单点登录
       sso: false,
       // 注意: 最好重新修改,防止破解
-      secret: 'cool-admin-xxxxxx',
+      secret: 'e964af16-b79a-4a77-b31f-9d6e4f6601ef',
       // token
       token: {
         // 2小时过期,需要用刷新token

+ 1 - 1
src/modules/user/config.ts

@@ -28,7 +28,7 @@ export default () => {
       // 刷新token 过期时间,单位秒
       refreshExpire: 60 * 60 * 24 * 30,
       // jwt 秘钥
-      secret: 'cool-app-xxxxxx',
+      secret: '2fadd66f-13c7-45c3-a4f3-38a053a8f610x',
     },
   } as ModuleConfig;
 };