forked from Gobie/luncher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
31 lines (28 loc) · 1001 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
'use strict'
require('dotenv').config({silent: true})
let services = require('./config.services.js')
let notifications = require('./config.notifications.js')
module.exports = {
// addons
AMQP: process.env.CLOUDAMQP_URL,
MEMCAHE_SERVERS: process.env.MEMCACHEDCLOUD_SERVERS,
MEMCAHE_USERNAME: process.env.MEMCACHEDCLOUD_USERNAME,
MEMCAHE_PASSWORD: process.env.MEMCACHEDCLOUD_PASSWORD,
// services
SERVICES: services,
CACHE_EXPIRATION: 4 * 3600,
CACHE_ENABLED: process.env.NODE_ENV === 'production',
ZOMATO_USER_KEY: process.env.ZOMATO_USER_KEY,
// server
REQUEST_TIMEOUT: 20000,
PORT: process.env.PORT || 3000,
LOGGING: process.env.NODE_ENV === 'production' ? 'combined' : 'dev',
// slack
SLACK_API_TOKEN: process.env.SLACK_API_TOKEN || '',
NOTIFICATIONS: notifications,
// global
NODE_ENV: process.env.NODE_ENV || 'development',
DEBUG: process.env.DEBUG || '',
WORKERS: process.env.WEB_CONCURRENCY || 1,
URL: process.env.URL || 'http://localhost:3000/'
}