-
Notifications
You must be signed in to change notification settings - Fork 28
/
config.js
31 lines (31 loc) · 1 KB
/
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
module.exports = {
remoteDB: process.env.REMOTE_DB || false,
api: {
port: process.env.API_PORT || 3000,
},
post: {
port: process.env.POST_PORT || 3002,
},
jwt: {
secret: process.env.JWT_SECRET || 'notasecret!',
},
mysql: {
host: process.env.MYSQL_HOST || 'remotemysql.com',
user: process.env.MYSQL_USER || 'vyU7DCqzKX',
password: process.env.MYSQL_PASS || 'hQ8gtxIQ9o',
database: process.env.MYSQL_DB || 'vyU7DCqzKX',
},
mysqlService: {
host: process.env.MYSQL_SRV_HOST || 'localhost',
port: process.env.MYSQL_SRV_PORT || 3001,
},
cacheService: {
host: process.env.MYSQL_SRV_HOST || 'localhost',
port: process.env.MYSQL_SRV_PORT || 3003,
},
redis: {
host: process.env.REDIS_HOST || 'redis-13556.c14.us-east-1-3.ec2.cloud.redislabs.com',
port: process.env.REDIS_PORT || 13556,
password: process.env.REDIS_PASS || '9sWIItAvlPbkoTcwOXstNm9hDFv7AU2F',
}
}