You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README-developers.md
+17-15Lines changed: 17 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,33 +72,35 @@ As an example, the following snippet tells the server to listen on port
72
72
};
73
73
74
74
exports.testing = {
75
-
post: 3001,
75
+
port: 3001,
76
76
…
77
77
}
78
78
79
79
The following configuration options are supported:
80
80
81
81
-**debug** (Optional): If true, the API server includes exception traces in
82
-
"Internal Server Error" responses.
83
-
-**port** (Required): The port on which the server listens for HTTP requests.
82
+
"Internal Server Error" responses
83
+
-**port** (Required): The port on which the server listens for HTTP requests
84
84
-**xmppDomain** (Required): The XMPP domain to which the server belongs. This
85
-
defines the XMPP server used for authentication and presence.
85
+
defines the XMPP server used for authentication and presence
86
86
-**xmppHost** (Optional): The hostname of the proxied XMPP server. This is
87
87
only needed if the hostname and port cannot be resolved from the *xmppDomain*
88
-
via DNS service discovery.
89
-
-**xmppPort** (Optional): The proxied XMPP server's port. See above.
88
+
via DNS service discovery
89
+
-**xmppPort** (Optional): The proxied XMPP server's port. See above
90
90
-**xmppAnonymousDomain** (Optional): The XMPP domain used for anonymous
91
-
sessions. If omitted, *xmppDomain* is assumed to handle this case.
91
+
sessions. If omitted, *xmppDomain* is assumed to handle this case
92
92
-**xmppAnonymousHost** (Optional): Like *xmppHost*, but for
93
-
*xmppAnonymousDomain*.
93
+
*xmppAnonymousDomain*
94
94
-**xmppAnonymousPort** (Optional): Like *xmppPort*, but for
95
-
*xmppAnonymousDomain*.
96
-
-**xmppDomain** (Required): The channel server's component domain.
95
+
*xmppAnonymousDomain*
96
+
-**xmppDomain** (Required): The channel server's component domain
97
97
-**requestExpirationTime** (Optional): Number of seconds to wait for
98
-
the response to an XMPP request. The default is 60.
98
+
the response to an XMPP request. The default is 60
99
99
-**sessionExpirationTime** (Optional): Number of seconds before a proxied
100
-
XMPP session expires. By default, this is 600 (10 minutes).
100
+
XMPP session expires. By default, this is 600 (10 minutes)
101
101
-**https** (Optional): If true, the server communicates exclusively via
102
-
HTTPS. *httpsCert* and *httpsKey* must be specified in this case.
103
-
-**httpsCert** (Optional): The SSL certificate to use if **https** is defined.
104
-
-**httpsKey** (Optional): The SSL private key to use if **https** is defined.
102
+
HTTPS. *httpsCert* and *httpsKey* must be specified in this case
103
+
-**httpsCert** (Optional): The SSL certificate to use if **https** is defined
104
+
-**httpsKey** (Optional): The SSL private key to use if **https** is defined
105
+
-**mediaProxyPrefix** (Optional, default __media_proxy__): The media proxy URL prefix. All URLs beyond this point are proxied to the media server without modification
106
+
-**disableWebsocket**: Do not deploy the realtime/websocket endpoint
Copy file name to clipboardExpand all lines: README.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,36 @@ Build status of the develop branch
15
15
16
16
Install documentation is at https://buddycloud.org/wiki/Install
17
17
18
+
## Realtime connection
19
+
20
+
A websocket (using the [xmpp-ftw](https://xmpp-ftw.jit.su) interface can be found at __$server/scripts/buddycloud.js__. This exposes a global object called *Buddycloud*
21
+
which you can instantiate to give you a websocket connection.
22
+
23
+
Please see [buddycloud.com](http://www.buddycloud.com) for more information on using this connection.
24
+
25
+
## Docker
26
+
27
+
There is a docker image available for the API server. Configuration is currently passed via environment variables:
28
+
29
+
| Configuration | Example | Description | Required or default |
| XMPP_DOMAIN | buddycloud.org | The XMPP domain for your server | ✓ |
32
+
| XMPP_HOST | 192.168.0.55 | The hostname or IP of your XMPP server | ✓ |
33
+
| CHANNEL_COMPONENT | channels.buddycloud.org | The channel server component address | ✓ |
34
+
| ANONYMOUS_COMPONENT | anon.buddycloud.org | An 'anonymous' component which can be used for open nodes | null |
35
+
| MEDIA_ENDPOINT |http://192.168.0.56:9000| The endpoint for a [media server](https://github.com/buddycloud/buddycloud-media-server)| null |
36
+
| PUSHER_COMPONENT | pusher.buddycloud.org | The location of a [pusher component](https://github.com/buddycloud/buddycloud-pusher)| null |
37
+
| FRIENDFINDER_COMPONENT | finder.buddycloud.org | The location of a [friend finder component](https://github.com/buddycloud/buddycloud-friend-finder)| null |
38
+
| SEARCH_COMPONENT | search.buddycloud.org | The location of a [search component](https://github.com/buddycloud/channel-directory)| null |
39
+
| DISABLE_WEBSOCKET | 0 | Whether to disable the [XMPP-FTW](https://xmpp-ftw.jit.su) endpoint | false |
40
+
| DEBUG | 1 | Whether to write additional debug to the logs | false |
41
+
42
+
Then simply launch the API server with the required environment variables as follows:
43
+
44
+
```bash
45
+
docker run -d -p 9123:9123 -e ..... buddycloud/api-server
46
+
```
47
+
18
48
## Issues
19
49
20
50
Please log any issues at https://github.com/buddycloud/buddycloud-http-api/issues
0 commit comments