From 31f81cd8e71a22cad12430671a8203b491351444 Mon Sep 17 00:00:00 2001 From: moepoi Date: Mon, 15 Nov 2021 16:57:21 +0700 Subject: [PATCH] Add db config --- config.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 config.js diff --git a/config.js b/config.js new file mode 100644 index 0000000..8892d2a --- /dev/null +++ b/config.js @@ -0,0 +1,12 @@ +const env = process.env; + +const config = { + db: { + host: env.DB_HOST, + user: env.DB_USER, + password: env.DB_PASSWORD, + database: env.DB_NAME, + }, +}; + +module.exports = config; \ No newline at end of file