Configure¶
Configure Web Server¶
- Apache 2
DocumentRoot /path/to/afflux
<Directory /path/to/afflux>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
- Lighttp
In lighttpd configuration :
proxy.server = ( "/http-bind/" =>
( (
"host" => "127.0.0.1",
"port" => 5280
) )
)
Version 0.2¶
Client settings¶
Open afflux/config.js
Basic Parameters
- Host of the jabber server (required)
1 afflux.Config.Hosts = ["afflux-project.org"];
You can allow multiple jabber server :
1 afflux.Config.Hosts = ["afflux-project.org", "example.org"];
- Jabber Resource (optionnal)
1 afflux.Config.Resource = "AffluxWebClient";
Additionnal services integration (optionnal)
If you are using Additionnal service client, you can integrate them into Afflux web client.
1 afflux.Config.services.enabled = true;
2 afflux.Config.services.url = "/afflux"; //path to client-services
Experts settings (optionnal)
- Specify Bosh url :
1 afflux.Config.BoshUrl = "bosh/";
For lighttp you MUST set BoshUrl to /http-bind/ like1 afflux.Config.BoshUrl = "/http-bind/";
- Specify polling interval for Bosh :
1 afflux.Config.BoshTime = 2000;
BOSH Access¶
Open afflux/.htaccess
Comment and uncomment line depends of you jabber server or bosh component.
- Ejabberd 2
RewriteEngine On
# Ejabberd 2
RewriteRule bosh/ http://localhost:5280/http-bind/ [P]
- Openfire
RewriteEngine On
#OpenFire
RewriteRule bosh/ http://localhost:7070/http-bind/ [P]
- Punjab
RewriteEngine On
#Punjab
RewriteRule bosh/ http://localhost:5280/bosh/ [P]