Projet

Général

Profil

Anomalie #2211

Mis à jour par Joël Cuissinat il y a environ 12 ans

Jappix est un webchat Jabber.

J'ai commencé de tester jappix avec eole-ejabberd, eole-web et eole-reverseproxy. Il y a peu de modification à faire pour que cela fonctionne.

Décompression de jappix dans le conteneur web : /usr/share/jappix/

Configuration d'apache : /etc/apache2/conf.d/jappix.conf

<pre>
# jappix phpMyAdmin default Apache configuration

Alias /jappix /usr/share/jappix

<Directory /usr/share/jappix> /usr/share/phpmyadmin>
#Options FollowSymLinks
DirectoryIndex index.php

<IfModule mod_php5.c>
AddType application/x-httpd-php .php

php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_value include_path .
</IfModule>

</Directory>
</pre>

La configuration de Jappix :

/usr/share/jappix/store/conf/hosts.xml (changer le domaine pouet.net):

<pre>
<?xml version="1.0" encoding="utf-8" ?>
<jappix xmlns="jappix:conf:hosts">
<main>pouet.net</main>
<muc>conference.pouet.net</muc>
<pubsub></pubsub>
<vjud>vjud.pouet.net</vjud>
<anonymous></anonymous>
<bosh>https://www.pouet.net/http-bind</bosh>
<bosh_main></bosh_main>
<bosh_mini></bosh_mini>
<static></static>
<upload></upload>
</jappix>
</pre>

/usr/share/jappix/store/conf/installed.xml :

<pre>
<?xml version="1.0" encoding="utf-8" ?>
<jappix xmlns="jappix:conf:installed">
<installed>true</installed>
</jappix>
</pre>

/usr/share/jappix/store/conf/main.xml (changer "Le nom" et 'La description":

<pre>
<?xml version="1.0" encoding="utf-8" ?>
<jappix xmlns="jappix:conf:main">
<name>Le nom</name>
<desc>La description</desc>
<resource>Jappix</resource>
<lock>on</lock>
<anonymous>off</anonymous>
<registration>off</registration>
<bosh_proxy>off</bosh_proxy>
<manager_link>off</manager_link>
<groupchats_join></groupchats_join>
<encryption>on</encryption>
<https_storage>on</https_storage>
<https_force>off</https_force>
<compression>on</compression>
<multi_files>off</multi_files>
<developer>off</developer>
</jappix>
</pre>

Ajout dans la configure nginx :

<pre>
location /http-bind {
proxy_pass http://%%container_ip_ejabberd:5280/http-bind/;
proxy_method POST;
proxy_buffering off;
tcp_nodelay on;
}
location /jappix {
proxy_pass http://%%container_ip_web;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Destination $dest;
proxy_method POST;
proxy_buffering off;
tcp_nodelay on;
}
</pre>

Enfin, la modification de ejabberd :

<pre>
--- ejabberd.cfg 2011-09-29 15:42:32.000000000 +0200
+++ ejabberd.cfg.new 2011-10-13 12:45:26.000000000 +0200
@@ -183,7 +183,12 @@

% HTTP service (You may choose options HTTP-polling and Web-administering)
% When commenting out, be careful with commas
- {5280, ejabberd_http, [http_poll, web_admin]}
+% {5280, ejabberd_http, [http_poll, web_admin]}
+ {5280, ejabberd_http, [
+ {request_handlers, [
+ {["http-bind"], mod_http_bind}
+ ]}
+ ]}
]}.

% Use STARTTLS+Dialback for S2S connections
@@ -226,7 +231,8 @@
{mod_caps, []},
{mod_time, []},
{mod_last, []},
- {mod_version, []}
+ {mod_version, []},
+ {mod_http_bind, []}
]}.

% vim:set ft=erlang:
</pre>

Jappix n'est pas cassifier, mais visiblement ejabberd peut fonctionner avec pam_cas :

http://mdl29.net/doku.php?id=braveo:docinstall:cas:ejabberd

Retour