librelist archives

« back to archive

BOSH with ejabberd

BOSH with ejabberd

From:
Elkom
Date:
2014-10-01 @ 11:44
Hi

I have inslalled ejabberd XMPP server on my raspberry-pi. Everything
looks good and operational but I don't have idea how to setup the BOSH
server :-) Sorry for this lame question but I still use default coverse
BOSH. I have separate public IP for my raspberry-pi so network issue is
not a problem. Is there any tutorial what should I do in the ejabberd's
config file? I use Raspbian (Debian) on my R-pi.

---
This email is free from viruses and malware because avast! Antivirus 
protection is active.
http://www.avast.com

Re: [conversejs] BOSH with ejabberd

From:
Chathura Wijesinghe
Date:
2014-10-01 @ 11:57
 enable the module http bind  ( remove %%  {mod_http_bind,[]}, )  and
add *http_bind
*as listing of *ejabberd_http *


edit /etc/ejabberd/ejabberd.cfg

%%{mod_service_log,[]},
  {mod_http_bind,[]},
  %%{mod_shared_roster,[]},
  {mod_stats,    []},




*//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*

 {5280, ejabberd_http, [
 %%{request_handlers,
 %% [
 %%  {["pub", "archive"], mod_http_fileserver}
 %% ]},
 %%captcha,
 *http_bind*,
 http_poll,
 web_admin
]},

 {5281, ejabberd_http, [
web_admin,
*http_bind*,
tls, {certfile, "/etc/ejabberd/server.pem"}
]}



N.B these configurations not for ejabberd 14.xxxx

Re: [conversejs] BOSH with ejabberd

From:
Elkom
Date:
2014-10-01 @ 12:35
>  {5281, ejabberd_http, [
> web_admin,
> *http_bind*,
> tls, {certfile, "/etc/ejabberd/server.pem"}
> ]}

I can't find this.
There is 5280 but not 5281.


---
This email is free from viruses and malware because avast! Antivirus 
protection is active.
http://www.avast.com

Re: [conversejs] BOSH with ejabberd

From:
Chathura Wijesinghe
Date:
2014-10-01 @ 12:41
ah okay np , just save and restart ejabberd and check
http://YOUR_IP:5280/http-bind

Re: [conversejs] BOSH with ejabberd

From:
Elkom
Date:
2014-10-01 @ 12:50
On 2014-10-01 14:41, Chathura Wijesinghe wrote:
> ah okay np , just save and restart ejabberd and check
> http://YOUR_IP:5280/http-bind
> 

got this:
==============


ejabberd mod_http_bind

An implementation of XMPP over BOSH (XEP-0206)

This web page is only informative. To use HTTP-Bind you need a
Jabber/XMPP client that supports it.

=================
Does it work? :-))))))))))))))

---
This email is free from viruses and malware because avast! Antivirus 
protection is active.
http://www.avast.com

Re: [conversejs] BOSH with ejabberd

From:
Chathura Wijesinghe
Date:
2014-10-01 @ 12:59
Yes , now okay ;)


*Chathura Wijesinghe*

*Software Engineer | Android Developer*
| Mobile: +94773651248
| Web : sithagi.com | androidlibs.org |

 javasrilankansupport.com

| E-Mail: chathura@sithagi.com <ishan@aptocol.com> |

   cdanasiri@gmail.com


On Wed, Oct 1, 2014 at 6:20 PM, ELKOM <info@elkom.com.tw> wrote:

> On 2014-10-01 14:41, Chathura Wijesinghe wrote:
> > ah okay np , just save and restart ejabberd and check
> > http://YOUR_IP:5280/http-bind
> >
>
> got this:
> ==============
>
>
> ejabberd mod_http_bind
>
> An implementation of XMPP over BOSH (XEP-0206)
>
> This web page is only informative. To use HTTP-Bind you need a
> Jabber/XMPP client that supports it.
>
> =================
> Does it work? :-))))))))))))))
>
> ---
> This email is free from viruses and malware because avast! Antivirus
> protection is active.
> http://www.avast.com
>
>

Re: [conversejs] BOSH with ejabberd

From:
Elkom
Date:
2014-10-01 @ 13:08
On 2014-10-01 14:59, Chathura Wijesinghe wrote:
> Yes , now okay ;)

Hehe thank You very much :-)

https://elkom.com.tw/chat/

(Still o default bosh but now I will try to switch it to R-pi)

Do you have any suggestions regarding security?

---
This email is free from viruses and malware because avast! Antivirus 
protection is active.
http://www.avast.com

Re: [conversejs] BOSH with ejabberd

From:
Chathura Wijesinghe
Date:
2014-10-01 @ 13:47
contact me cdanasiri@gmail.com

Re: [conversejs] BOSH with ejabberd

From:
Elkom
Date:
2014-10-01 @ 17:42
On 2014-10-01 15:47, Chathura Wijesinghe wrote:
> contact me cdanasiri@gmail.com
> 

The problem is gmail is not a good place to make business conversations,
eavesdropping, not trusted place in general :-)

The most important issue in communication is privacy. If we don't
control it all business relationships are not safe. My approach is to
use Converse.JS on the https website and all files on the server are
digitally signed, server is mine and I plan to serve important security
aware file from the write protected media and reload ram very often :-).
Password to the Jabber is irrelevant because secret keys are generated
per session. Jabber is on raspberry pi isolated from the LAN on the
separate pppoe session and physical second dsl cable.

There are plenty of companies offering chats for the websites but most
of them don't care about privacy and many of them openly states they
record conversations :-)

Converse.JS was my dream some time ago :-) I am making workaround mow
but maybe in the future there will be a mode of operation for otr
encrypted help/support.:-)


---
This email is free from viruses and malware because avast! Antivirus 
protection is active.
http://www.avast.com

Re: [conversejs] BOSH with ejabberd

From:
Elkom
Date:
2014-10-01 @ 17:52
I changed the BOSH address from the default to my raspberry pi and it
doesn't connect now. Hmmm. What address should it be now?
http://my_ip ?


---
This email is free from viruses and malware because avast! Antivirus 
protection is active.
http://www.avast.com

Re: [conversejs] BOSH with ejabberd

From:
Elkom
Date:
2014-10-01 @ 23:16
On 2014-10-01 19:52, ELKOM wrote:
> I changed the BOSH address from the default to my raspberry pi and it
> doesn't connect now. Hmmm. What address should it be now?
> http://my_ip ?
> 

I will answer my own question :-)
The problem is solved. Now it works :-)

http://my_ip:5280/http-bind was the solution :-)

Thank You very much good people :-)

---
This email is free from viruses and malware because avast! Antivirus 
protection is active.
http://www.avast.com