Browse Source

更新 'config/config.prod.js'

lrf 2 years ago
parent
commit
c4acbe3a27
1 changed files with 22 additions and 22 deletions
  1. 22 22
      config/config.prod.js

+ 22 - 22
config/config.prod.js

@@ -1,22 +1,22 @@
-'use strict';
-
-module.exports = () => {
-  const config = exports = {};
-
-  config.logger = {
-    level: 'INFO',
-    consoleLevel: 'INFO',
-  };
-  config.dbName = 'shitang';
-  config.mongoose = {
-    url: `mongodb://localhost:27017/${config.dbName}`,
-    options: {
-      // user: 'admin',
-      // pass: 'admin',
-      // authSource: 'admin',
-      // useNewUrlParser: true,
-      // useCreateIndex: true,
-    },
-  };
-  return config;
-};
+'use strict';
+
+module.exports = () => {
+  const config = exports = {};
+
+  config.logger = {
+    level: 'INFO',
+    consoleLevel: 'INFO',
+  };
+  config.dbName = 'shitang';
+  config.mongoose = {
+    url: `mongodb://localhost:27017/${config.dbName}`,
+    options: {
+      user: 'admin',
+      pass: 'admin',
+      authSource: 'admin',
+      useNewUrlParser: true,
+      useCreateIndex: true,
+    },
+  };
+  return config;
+};