mtfosbot/config/index.js

32 lines
967 B
JavaScript
Raw Normal View History

2018-06-25 10:07:10 +00:00
module.exports = {
port: process.env.NODE_PORT || 10230,
2018-06-28 09:37:33 +00:00
url: process.env.HOST_URL || '',
2018-07-13 08:07:49 +00:00
image_root: process.env.IMAGE_ROOT || '/image',
salt_round: process.env.SALT_ROUND || 10,
2018-06-25 10:07:10 +00:00
line: {
secret: process.env.LINE_SECRET || '',
access: process.env.LINE_ACCESS || ''
},
twitch: {
clientid: process.env.TWITCH_CLIENT_ID || '',
2018-08-12 15:31:09 +00:00
clientsecret: process.env.TWITCH_CLIENT_SECRET || '',
2018-07-15 16:51:18 +00:00
subsecret: process.env.TWITCH_SUB_SECRET || '',
chat_host: process.env.TWITCH_CHAT_HOST || '',
bot_oauth: process.env.TWITCH_BOT_OAUTH || ''
},
2018-07-06 09:57:49 +00:00
google: {
apikey: process.env.GOOGLE_API_KEY || ''
},
database: {
host: process.env.DB_HOST || 'localhost',
port: process.env.DB_PORT || 5432,
user: process.env.DB_USER || 'postgres',
pass: process.env.DB_PASS || '',
dbname: process.env.DB_NAME || 'mtfosbot'
2018-07-18 16:40:07 +00:00
},
redis: {
host: process.env.REDIS_HOST || 'localhost',
port: process.env.REDIS_PORT || 6379
2018-06-25 10:07:10 +00:00
}
}