forked from thedjpetersen/subway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
41 lines (32 loc) · 1.26 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
module.exports = {
debug: false,
dbadapter: 'sqlite3',
// dbname: process.env.DB_PATH || 'subway.db',
dbname: '/var/www/lug-site/irc/subway.db',
dbusername: '',
dbpassword: '',
dbhost: '',
dbport: '',
// any connections with 'keep alive' selected should be reconnected on subway start
restore_connections: true,
// Servers to which the client is allowed to connect to, restrict all the others
// server_whitelist: ["irc.freenode.net"],
server_whitelist: ["irc.oftc.net"],
/* not implemented yet */
user_access: {
users_enabled: true, // show and allow logins
registration_enabled: true, // allow new users to register themselves
bouncer_mode_allowed: true // allow IRC connections to persist when users disconnect
},
dev: {
port: process.env.PORT || 3000,
client_port: process.env.CLIENT_PORT || process.env.PORT || 3000
},
prod: {
port: process.env.PORT || 14858, // Nodester port
client_port: 80 // Websockets talk on port 80 on Nodester, regardless of listen port
},
use_polling: process.env.USE_POLLING || false, // Use polling if websockets aren't supported
// limit each user's connection log to this amount of messages (***not implemented yet***)
max_log_size: 4096
};