From b152602c92ca6ee361f478ecf2da34a9446e4f97 Mon Sep 17 00:00:00 2001 From: Mateja Date: Wed, 2 Jun 2021 22:53:32 +0200 Subject: Add `env.js`. --- config/env.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 config/env.js (limited to 'config') diff --git a/config/env.js b/config/env.js new file mode 100644 index 0000000..6d69000 --- /dev/null +++ b/config/env.js @@ -0,0 +1,6 @@ +require('dotenv').config(); +module.exports = { + port: process.env.PORT || 8080, + mongoUrl: process.env.DB_CONN || "mongodb://localhost/playground_db", + masterKey: process.env.APP_SECRET || "you-should-use-something-different" +}; -- cgit v1.2.3