dbConfig.js 456 B

12345678910111213141516171819
  1. let pe = process.env;
  2. module.exports = {
  3. dbName: pe.MONGODB_NAME || "iconRepo",
  4. host: pe.MONGODB_HOST || "127.0.0.1",
  5. port: pe.MONGODB_PORT || 27017,
  6. username: pe.MONGODB_USERNAME || "",
  7. password: pe.MONGODB_PASSWORD || "",
  8. authSource: pe.MONGO_AUTHSOURCE || "admin",
  9. };
  10. // module.exports = {
  11. // dbName: "ipResp",
  12. // host: "localhost",
  13. // port: 27017,
  14. // username: "gemer",
  15. // password: "sglove520",
  16. // authSource: "admin",
  17. // };