mirror of
https://gitlab.com/nekoya/web.git
synced 2024-11-22 06:20:19 +01:00
Add db config
This commit is contained in:
parent
f0ea916c1b
commit
31f81cd8e7
1 changed files with 12 additions and 0 deletions
12
config.js
Normal file
12
config.js
Normal file
|
@ -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;
|
Loading…
Reference in a new issue