-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathconfig.js.example
58 lines (50 loc) · 1.77 KB
/
config.js.example
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
// buddycloud-server config file
// change EXAMPLE.COM to match your domain
// jid referrs to the DNS entry that you setup for your buddycloud-server
// by default this is buddycloud.<your domain>
exports.xmpp = { jid: 'buddycloud.EXAMPLE.COM',
password: 'tellnoone',
host: 'localhost',
port: 5347
};
// uncomment and set to enable topic channels on this domain
// exports.advertiseComponents = [ 'topics.EXAMPLE.COM' ];
// database settings
exports.modelBackend = 'postgres';
exports.modelConfig = {
host: 'localhost',
port: 5432,
database: 'buddycloud-server',
user: 'buddycloud-server',
password: 'tellnoone',
poolSize: 4
};
// default privacy for new new channels
exports.defaults = {
userChannel: { openByDefault: true },
topicChannel: { openByDefault: true },
};
// level can be "FATAL", "ERROR", "WARN", "INFO", "DEBUG", "TRACE".
// you should use at least one of stdout, syslog and file.
exports.logging = {
colorized: false,
level: "INFO",
// stdout: true,
// syslog: { hostname: "localhost", port: 514 },
file: "/var/log/buddycloud-server.log"
};
// restrict creation of topic channels to just your domain - a good idea
exports.checkCreateNode = function(opts) {
return (opts.nodeUser === opts.actor) ||
(opts.nodeUser.split("@")[1] === "topics.EXAMPLE.COM");
};
// JID of the pusher. This component will be notified of *all* events, including
// those on private channels. If you don't know what the pusher component is, or
// if you don't have one, you really should leave this commented.
//exports.pusherJid = "pusher.EXAMPLE.COM";
// autosubscribe users to a few channels
exports.autosubscribeNewUsers = [
];