aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-06-02 22:53:32 +0200
committerMateja <mail@matejamaric.com>2021-06-02 22:53:32 +0200
commitb152602c92ca6ee361f478ecf2da34a9446e4f97 (patch)
treed968b6dfad61230026ae3dde1e98e0a1b4f1a126 /config
parent04cb777936edffb5f16c2a4515cfa2ce88256dd7 (diff)
downloadnode-playground-b152602c92ca6ee361f478ecf2da34a9446e4f97.tar.gz
node-playground-b152602c92ca6ee361f478ecf2da34a9446e4f97.zip
Add `env.js`.
Diffstat (limited to 'config')
-rw-r--r--config/env.js6
1 files changed, 6 insertions, 0 deletions
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"
+};