Browse Source

更新配置

MaiXinRong 7 years ago
parent
commit
1d227fd707
2 changed files with 6 additions and 6 deletions
  1. 4 4
      config/config.default.js
  2. 2 2
      config/config.qa.js

+ 4 - 4
config/config.default.js

@@ -8,7 +8,7 @@ module.exports = appInfo => {
     config.mysql = {
         client: {
             // host
-            host: '192.168.1.139',
+            host: '127.0.0.1',
             // 端口号
             port: '3306',
             // 用户名
@@ -29,7 +29,7 @@ module.exports = appInfo => {
     // redis设置
     config.redis = {
         client: {
-            host: '192.168.1.139',
+            host: '127.0.0.1',
             port: '6379',
             password: 'test',
             db: '0',
@@ -75,7 +75,7 @@ module.exports = appInfo => {
     // 安全性配置
     config.security = {
         csrf: {
-            ignoreJSON: true, // 默认为 false,当设置为 true 时,将会放过所有 content-type 为 `application/json` 的请求
+            ignoreJSON: false, // 默认为 false,当设置为 true 时,将会放过所有 content-type 为 `application/json` 的请求
         },
     };
 
@@ -106,7 +106,7 @@ module.exports = appInfo => {
     };
 
     // 是否压缩替换前端js
-    config.min = true;
+    config.min = false;
 
     return config;
 };

+ 2 - 2
config/config.qa.js

@@ -13,7 +13,7 @@ module.exports = appInfo => {
     config.mysql = {
         client: {
             // host
-            host: '192.168.1.139',
+            host: '192.168.1.70',
             // 端口号
             port: '3306',
             // 用户名
@@ -34,7 +34,7 @@ module.exports = appInfo => {
     // redis设置
     config.redis = {
         client: {
-            host: '192.168.1.139',
+            host: '192.168.1.70',
             port: '6379',
             password: 'test',
             db: '0',