Add config

This commit is contained in:
Francesco Esposito 2019-08-22 17:28:56 +02:00
parent 9b2af6eb53
commit 4b2b08c699
1 changed files with 25 additions and 0 deletions

25
src/config.js Normal file
View File

@ -0,0 +1,25 @@
require('dotenv').config();
const telegram = {
token: process.env.TELEGRAM_TOKEN,
};
const umbrello = {
apiURL: process.env.UMBRELLO_API_URL,
};
const database = {
host: process.env.DB_HOST,
user: process.env.DB_USER,
password: process.env.DB_PASSWORD,
};
const config = {
telegram,
umbrello,
database,
};
export default config;