-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.sample.js
69 lines (67 loc) · 1.46 KB
/
config.sample.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
var fs = require('fs');
var path = require('path');
var key = fs.readFileSync(path.join(__dirname, 'key.pem'));
var cert = fs.readFileSync(path.join(__dirname, 'cert.pem'));
module.exports = {
loggingConfig: {
// any otpions you would pass to createLogger
// https://github.com/trentm/node-bunyan
level: 'trace',
},
listeners: [
{
host: '0.0.0.0',
type: 'plain',
port: 6667,
enabled: false,
},
{
host: '0.0.0.0',
type: 'tls',
port: 6697,
key: key,
cert: cert,
enabled: true,
},
{
host: '0.0.0.0',
type: 'socketio',
port: 8443,
key: key,
cert: cert,
enabled: true,
redirectUrl: 'https://webchat.example.com',
},
{
host: '0.0.0.0',
type: 'websocket',
port: 8444,
key: key,
cert: cert,
enabled: true,
redirectUrl: 'https://webchat.example.com',
},
],
destination: {
host: 'irc.example.com',
port: 6667,
type: 'plain',
// you can specify TLS valid config options, see:
// https://nodejs.org/api/tls.html#tls_tls_connect_port_host_options_callback
ca: [ fs.readFileSync(path.join(__dirname, 'spi-cacert.crt')) ],
},
cloaks: [
path.join(__dirname, 'spi-cacert.crt'),
],
reconnectTime: 15 * 1000,
blockTor: false,
dnsbl: {
maxScore: 1,
servers: {
'somednsbl': {
zone: 'dnsbl.example.com',
defaultScore: 1,
},
},
},
};