-
Notifications
You must be signed in to change notification settings - Fork 17
/
config.js.example
94 lines (74 loc) · 2.55 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// buddycloud-http-api-server config
// rename to config.js
// API requests look like:
//
// [webclient (https/443)]
// ↓
// [webserver reverse proxy]
// ↓
// (unencrypted http traffic on port 9123)
// ↓
// [buddycloud-http-api-server (http/9123)]
// ↓
// (unencrypted xmpp traffic on port 5222)
// ↓
// [XMPP server (xmpp/5222)] → [other buddycloud components or XMPP servers]
exports._ = {
// This is the port that your webserver's reverse proxy will forward requests to
port: 9123,
// Whether to disable the xmpp-ftw endpoint
disableWebsocket: false
};
// Production settings
exports.production = {
// More logs?
debug: true,
// the domain your run buddycloud for (if your username is [email protected] then this would be EXAMPLE.COM)
xmppDomain: 'EXAMPLE.COM',
// the host where your XMPP server is running
xmppHost: '127.0.0.1',
// the anonymous domain that unauthenticated users are dropped into (should match your XMPP server)
xmppAnonymousDomain: 'anon.EXAMPLE.COM',
// your buddycloud channel server
channelDomain: 'buddycloud.EXAMPLE.COM',
// the pusher component sends emails to users (https://github.com/buddycloud/buddycloud-pusher)
pusherComponent: 'pusher.EXAMPLE.COM',
// the friend finder component looks for your friends from other social networks
friendFinderComponent: 'friendfinder.buddycloud.org',
// you probably want to use the buddycloud search service
searchComponent: 'search.buddycloud.org',
// where to forward media requests
homeMediaRoot: 'http://localhost:60080',
// Creating buddycloud users/sessions on the fly
// required to enable buddycloud support for existing users on your xmpp server
// createUserOnSessionCreation: true,
// log transport (file | console)
logTransport: 'file',
// log file (only applies for file transport)
logFile: 'log',
// log level
logLevel: 'debug',
// log format (use json or not)
logUseJson: false,
// pushpin and/or fanout.io is used for sending realtime data to clients
// gripProxies: [
// // pushpin
// {
// key: 'changeme', // make sure this matches with pushpin.conf
// controlUri: 'http://localhost:5561'
// },
// // fanout.io
// /*{
// key: new Buffer('your-realm-key', 'base64'),
// controlUri: 'http://api.fanout.io/realm/your-realm',
// controlIss: 'your-realm'
// }*/
//]
};
// Test suite settings
exports.testing = {
port: 19123,
xmppDomain: 'localhost',
xmppHost: '127.0.0.1',
xmppPort: 15222,
};