-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
20 lines (18 loc) · 687 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const crypto = require('crypto'),
lengthBytes = 24;
if (process.env['NODE_ENV'] !== 'production') {
require('dotenv').config();
}
module.exports = {
ServerPort: process.env['PORT'],
DatabaseUrl: process.env['DATABASE_URL'],
SecretSession: process.env['SESSION_SECRET'] || crypto.randomBytes(lengthBytes).toString('hex'),
SaltHash: process.env['SALT_HASH'],
TelegramBotToken: process.env['TELEGRAM_BOT_TOKEN'],
TelegramBotEnable: process.env['ENABLE_TG_BOT'],
cloudinary : {
cloud_name: process.env['CLOUDINARY_CLOUD_NAME'],
api_key: process.env['CLOUDINARY_API_KEY'],
api_secret: process.env['CLOUDINARY_API_SECRET']
}
};