twitch-bot/config/index.js

21 lines
675 B
JavaScript
Raw Normal View History

2018-02-12 15:08:42 +00:00
module.exports = {
port: process.env.PORT || 10230,
twitch: {
auth_url: 'https://api.twitch.tv/kraken/oauth2/authorize',
token_url: 'https://api.twitch.tv/kraken/oauth2/token',
chat_host: 'irc-ws.chat.twitch.tv',
chat_port: 443,
redirect_uri: process.env.REDIRECT_URI || '',
client_id: process.env.CLIENT_ID || '',
2018-02-12 16:34:26 +00:00
secret: process.env.SECRET || '',
refresh_token: process.env.REFRESH_TOKEN || ''
2018-02-12 15:08:42 +00:00
},
database: {
host: process.env.DB_HOST || 'localhost',
port: process.env.DB_PORT || 5432,
user: process.env.DB_USER || 'postgres',
pass: process.env.DB_PASS || null,
db_name: process.env.DB_NAME || 'twitch_bot'
}
}