Skip to content

Repository files navigation

Implements http://buddycloud.com/api

Build status

Build status of master branch

Build Status

Build status of the develop branch

Build Status

Install

Install documentation is at https://buddycloud.org/wiki/Install

Realtime connection

A websocket (using the xmpp-ftw interface can be found at $server/scripts/buddycloud.js. This exposes a global object called Buddycloud which you can instantiate to give you a websocket connection.

Please see buddycloud.com for more information on using this connection.

Docker

There is a docker image available for the API server. Configuration is currently passed via environment variables:

ConfigurationExampleDescriptionRequired or default
XMPP_DOMAINbuddycloud.orgThe XMPP domain for your server
XMPP_HOST192.168.0.55The hostname or IP of your XMPP server
CHANNEL_COMPONENTchannels.buddycloud.orgThe channel server component address
ANONYMOUS_COMPONENTanon.buddycloud.orgAn 'anonymous' component which can be used for open nodesnull
MEDIA_ENDPOINThttp://192.168.0.56:9000The endpoint for a media servernull
PUSHER_COMPONENTpusher.buddycloud.orgThe location of a pusher componentnull
FRIENDFINDER_COMPONENTfinder.buddycloud.orgThe location of a friend finder componentnull
SEARCH_COMPONENTsearch.buddycloud.orgThe location of a search componentnull
DISABLE_WEBSOCKET0Whether to disable the XMPP-FTW endpointfalse
DEBUG1Whether to write additional debug to the logsfalse

Then simply launch the API server with the required environment variables as follows:

docker run -d -p 9123:9123 -e ..... buddycloud/api-server

Issues

Please log any issues at https://github.com/buddycloud/buddycloud-http-api/issues

Developers

For developing please see the config file named config.js.developer-example.

License and copyright

This code is Apache 2 licensed and copyright buddycloud.

About

The buddycloud API server written in Node.js

Resources

Stars

38 stars

Watchers

16 watching

Forks

Releases

Packages

Used by

Contributors

Languages