sudo apt-get install ejabberd nginx curl
sudo ejabberdctl register admin localhost admin
%% ejabberd.cfg
%% Admin user
{acl, admin, {user, "admin", "localhost"}}.
%% ejabberd.cfg
%%
{modules,
[
...
{mod_http_bind, []},
...
]
}.
server {
listen 8080;
server_name localhost;
location / {
root /var/www/;
}
location /http-bind {
proxy_buffering off;
tcp_nodelay on;
keepalive_timeout 55;
proxy_pass http://localhost:5280;
}
}