-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.js
More file actions
23 lines (16 loc) · 758 Bytes
/
config.js
File metadata and controls
23 lines (16 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const config = {};
config.redis = {};
config.web = {};
config.url = {};
config.pg = {};
config.logging = Boolean(parseInt(process.env.NODE_LOGGING)) || true;
config.logging_level = process.env.LOGGING_LEVEL || 'debug';
config.web.host = process.env.HOST || 'localhost';
config.web.port = parseInt(process.env.PORT) || 3000;
config.redis.host = process.env.REDIS_HOST || 'localhost';
config.redis.port = parseInt(process.env.REDIS_PORT) || 6379;
config.redis.password = process.env.REDIS_PASSWORD || null;
config.redis.no_ready_check = Boolean(parseInt(process.env.REDIS_NO_READY_CHECK)) || false;
config.url.mirror = process.env.MIRROR_URL || 'https://localhost/';
config.pg.options = process.env.DATABASE_URL || 'localhost';
module.exports = config;