-
-
Notifications
You must be signed in to change notification settings - Fork 57
/
config.js
52 lines (46 loc) · 1.23 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const path = require('path')
/**
* Is site running in production?
*/
exports.isProd = process.env.NODE_ENV === 'production'
/**
* WebTorrent Desktop version (used by auto-updater, landing page, etc.)
*/
exports.desktopVersion = '0.24.0'
/**
* Path to store log files
*/
exports.logPath = process.env.NODE_ENV === 'production'
? '/home/feross/www/log/webtorrent.io'
: path.join(__dirname, 'logs')
let secret
try { secret = require('./secret') } catch (err) {}
/**
* Discord IRC bot credentials
*/
exports.discordIrc = {
nickname: 'irc-discord-bot',
server: 'irc.freenode.net',
discordToken: secret && secret.discordIrc && secret.discordIrc.botToken,
channelMapping: {
'612697220470276119': '#webtorrent',
'612704110008991786': '#standard'
},
ircOptions: {
username: 'irc-discord-bot',
password: secret && secret.discordIrc && secret.discordIrc.ircPassword
}
}
/**
* Gitter IRC bot credentials
*/
exports.gitterBot = {
ircChannel: '#webtorrent',
ircNick: 'gitter-bot',
ircServer: 'irc.freenode.net',
ircOpts: {
password: secret && secret.gitterIrc && secret.gitterIrc.ircPassword
},
gitterRoom: 'webtorrent/webtorrent',
gitterApiKey: secret && secret.gitterIrc && secret.gitterIrc.gitterApiKey
}