informatique:linux:ejabberd
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| informatique:linux:ejabberd [2009/05/04 13:42] – benoit | informatique:linux:ejabberd [2009/05/04 15:08] (Version actuelle) – benoit | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Ejabberd ====== | ====== Ejabberd ====== | ||
| + | |||
| + | |||
| + | ===== Installation et configuration basic ===== | ||
| Ce tutoriel permet d' | Ce tutoriel permet d' | ||
| + | |||
| + | |||
| + | Installer Ejabberd : | ||
| + | apt-get install ejabberd | ||
| + | |||
| + | Télécharger **jwchat** depuis http:// | ||
| + | |||
| + | cd / | ||
| + | tar xzf jwchat-1.0.tar.gz | ||
| + | mv jwchat-1.0 jwchat | ||
| + | |||
| + | Editer le fichier de configuration **/ | ||
| + | /* | ||
| + | * JWChat, a web based jabber client | ||
| + | * Copyright (C) 2003-2008 Stefan Strigler < | ||
| + | * | ||
| + | * This program is free software; you can redistribute it and/or | ||
| + | * modify it under the terms of the GNU General Public License | ||
| + | * as published by the Free Software Foundation; either version 2 | ||
| + | * of the License, or (at your option) any later version. | ||
| + | * | ||
| + | * This program is distributed in the hope that it will be useful, | ||
| + | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| + | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
| + | * GNU General Public License for more details. | ||
| + | * | ||
| + | * You should have received a copy of the GNU General Public License | ||
| + | * along with this program; if not, write to the Free Software | ||
| + | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
| + | * | ||
| + | * Please visit http:// | ||
| + | */ | ||
| + | | ||
| + | /* | ||
| + | * This is the main configuration file for the chat client itself. | ||
| + | * You have to edit this before you can use jwchat on your website! | ||
| + | * | ||
| + | * Have a look at the README for hints and troubleshooting! | ||
| + | */ | ||
| + | | ||
| + | var SITENAME = " | ||
| + | | ||
| + | /* BACKENDS | ||
| + | * Array of objects each describing a backend. | ||
| + | * | ||
| + | * Required object fields: | ||
| + | * name - human readable short identifier for this backend | ||
| + | * httpbase | ||
| + | * type - type of backend, must be ' | ||
| + | * | ||
| + | * Optional object fields: | ||
| + | * description | ||
| + | * servers_allowed - array of jabber server addresses users can connect to | ||
| + | | ||
| + | * | ||
| + | * If BACKENDS contains more than one entry users may choose from a | ||
| + | * select box which one to use when logging in. | ||
| + | * | ||
| + | * If ' | ||
| + | * field to enter the jabber server to connect to by hand. | ||
| + | * If ' | ||
| + | * presented a select box to choose a jabber server to connect to. | ||
| + | * If ' | ||
| + | * presented to user. | ||
| + | */ | ||
| + | var BACKENDS = | ||
| + | [ | ||
| + | /* { | ||
| + | name:" | ||
| + | description:" | ||
| + | httpbase:"/ | ||
| + | type:" | ||
| + | servers_allowed: | ||
| + | },*/ | ||
| + | { | ||
| + | name:" | ||
| + | description:" | ||
| + | httpbase:"/ | ||
| + | type:" | ||
| + | servers_allowed: | ||
| + | }, | ||
| + | /* { | ||
| + | name:" | ||
| + | description:" | ||
| + | httpbase:"/ | ||
| + | type:" | ||
| + | default_server: | ||
| + | }, | ||
| + | { | ||
| + | name:" | ||
| + | description:" | ||
| + | httpbase:"/ | ||
| + | type:" | ||
| + | servers_allowed: | ||
| + | }*/ | ||
| + | ]; | ||
| + | | ||
| + | /*var DEFAULTRESOURCE = " | ||
| + | var DEFAULTRESOURCE = ""; | ||
| + | var DEFAULTPRIORITY = " | ||
| + | | ||
| + | /* DEFAULTCONFERENCEGROUP + DEFAULTCONFERENCESERVER | ||
| + | * default values for joingroupchat form | ||
| + | */ | ||
| + | var DEFAULTCONFERENCEROOM = " | ||
| + | var DEFAULTCONFERENCESERVER = " | ||
| + | | ||
| + | /* debugging options */ | ||
| + | var DEBUG = false; // turn debugging on | ||
| + | var DEBUG_LVL = 2; // debug-level 0..4 (4 = very noisy) | ||
| + | | ||
| + | var USE_DEBUGJID = false; // if true only DEBUGJID gets the debugger | ||
| + | var DEBUGJID = " | ||
| + | | ||
| + | | ||
| + | // most probably you don't want to change anything below | ||
| + | | ||
| + | var timerval = 2000; // poll frequency in msec | ||
| + | | ||
| + | var stylesheet = " | ||
| + | var THEMESDIR = " | ||
| + | | ||
| + | /* Auto-login options. Define parameters for guest user account and | ||
| + | * when JWChat page is called with ' | ||
| + | * to GUEST_ACC value then configuration below is used for autologin. | ||
| + | * Sample configuration: | ||
| + | * var GUEST_ACC = " | ||
| + | * var GUEST_PWD = " | ||
| + | * Sample call: | ||
| + | * http:// | ||
| + | * will triger auto-login for the ' | ||
| + | * | ||
| + | * As it is possible that many people try to login at the same time | ||
| + | * the auto-login function will generate random resource based on | ||
| + | * algorithm: DEFAULTRESOURCE + Math.round(Math.random()*1000) | ||
| + | */ | ||
| + | var GUEST_ACC = ""; | ||
| + | var GUEST_PWD = ""; | ||
| + | |||
| + | |||
| + | Editer et configurer votre fichier de configuration apache en ajoutant les lignes suivantes : | ||
| + | |||
| + | AddDefaultCharset UTF-8 | ||
| + | Options +MultiViews | ||
| + | < | ||
| + | RewriteEngine On | ||
| + | RewriteRule http-poll/ http:// | ||
| + | </ | ||
| + | |||
| + | |||
| + | Pour terminer, il suffit de se connecter sur votre serveur, par exemple sur l' | ||
| + | |||
| + | Vous pouvez vous créer une compte ou vous identifier. Par défaut, utiliser le **Native Polling**. | ||
| + | |||
| + | ===== Configuration avancée ===== | ||
| + | |||
| + | ==== Interdire la création de compte ==== | ||
| + | Editer le fichier **/ | ||
| + | %{access, register, [{allow, all}]}. | ||
| + | |||
| + | Et décommenter en retirant " | ||
| + | {access, register, [{deny, all}]}. | ||
| + | |||
| + | ===== Quelques commandes d' | ||
| + | |||
| + | Pour lister les utilisateurs enregistrés : | ||
| + | ejabberdctl vhost localhost registered-users | ||
| + | |||
| + | Pour lister les utilisateurs connectés : | ||
| + | ejabberdctl connected-users | ||
| + | |||
| + | Pour sauvegarder la configuration : | ||
| + | ejabberdctl dump backup.txt | ||
| + | |||
| + | :!: le fichier se trouvera dans ''/ | ||
| + | |||
| + | Pour restaurer la configuration | ||
| + | ejabberdctl load backup.txt | ||
| + | |||
informatique/linux/ejabberd.1241444532.txt.gz · Dernière modification : (modification externe)
