Difference between revisions of "Dev ejabberd"

From SME Server
Jump to navigationJump to search
Line 29: Line 29:
 
  signal-event post-upgrade; signal-event reboot
 
  signal-event post-upgrade; signal-event reboot
  
at the reboot you have that db available settings and a panel in the server-manager
+
at the reboot you have these db available settings and a panel in the server-manager
  
 
  # config show ejabberd  
 
  # config show ejabberd  

Revision as of 22:50, 20 September 2014

Warning.png Work in Progress:
This page is a Work in Progress. The contents off this page may be in flux, please have a look at this page history the to see list of changes.


About

This page holds all sorts of information about the development of the ejabberd contrib. You are most welcome to add, test and improve this page. We will appreciate your input.


Status

Status SME8: RELEASED

http://wiki.contribs.org/newcontrib


Status SME9: IN PROGRESS


TBA

HOWTO

The contrib is holding at http://mirror.de-labrusse.fr/Sme-Server/smeserver-IM/ For history it is 'inspired' (copied) from ipasserelle-im, itself inspired from smeserver-ejabberd. The contrib is called smeserver-IM but the name can change.

the source of work is here https://github.com/stephdl/smeserver-IM/tree/sme9_ejabberd_alone

in order to install (adjust name if needed)

wget http://mirror.de-labrusse.fr/Sme-Server/smeserver-IM/smeserver-IM-0.2.16-2.el6.sme.noarch.rpm
yum install smeserver-IM-0.2.16-2.el6.sme.noarch.rpm --enablerepo=epel,fws -y
config setprop ejabberd WebAdmin enabled access public status enabled
signal-event post-upgrade; signal-event reboot

at the reboot you have these db available settings and a panel in the server-manager

# config show ejabberd 
ejabberd=service
   Archives=disabled
   DbName=ejabberd
   DbPassword=hbwQ3bEBuCdxYAvV1vmsLYqtCPcR3+97D5p4swnf5Bt992I014BqqSTXcxNDP+Fzaq1SXfJyNhmcZbGX
   DbUser=ejabberd
   Domain=mycompany.fr
   HTTPBind=enabled
   LogChat=disabled
   TCPPorts=5222,5223,5269
   WebAdmin=enabled
   WelcomeSubject=
   WelcomeText=
   access=public
   status=enabled

The admin page is reachable at im.your_sme_domain.xx/admin Here for example it will be im.mycompany.fr/admin the login : admin@mycompany.fr (use the value of Domain) password : your admin password

either you use your sme in server and gateway and you don't have to trick your dns server, or you have to adjust your dns server (generally in your router) to translate 'im.mycompany.fr' to the IP of your server which host the contribs.

in anyway if you do

# dig any im.mycompany.fr

you should see something which give the IP of your server

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.23.rc1.el6_5.1 <<>> any im.mycompany.fr
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39533
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;im.mycompany.fr.		IN	ANY

;; ANSWER SECTION:
im.mycompany.fr.	2560	IN	SOA	sme9b3dev64.mycompany.fr. hostmaster.im.mycompany.fr. 1411226654 16384 2048 1048576 2560
im.mycompany.fr.	259200	IN	NS	sme9b3dev64.mycompany.fr.
im.mycompany.fr.	86400	IN	MX	0 sme9b3dev64.mycompany.fr.
im.mycompany.fr.	86400	IN	A	192.168.xx.240

;; Query time: 89 msec
;; SERVER: 192.168.12.240#53(192.168.12.240)
;; WHEN: Sat Sep 20 23:41:46 2014
;; MSG SIZE  rcvd: 138


Drafts_TODO

  • a link to the admin page directly in the server-manager
  • see what is better, either do a reverse proxy (https://im.host.xx/admin) like now or use a port redirection (https://ip:5280/admin)to reach the ejabberd_webadmin
  • see if needed to remove all traces of the rpm once removed (db settings, mysql DB....)
  • more db setting directly in the panel of server-manager
   WelcomeSubject=
   WelcomeText=
   WebAdmin=enabled
   ...