README.md 2.65 KB
Newer Older
1 2 3
Prosody account manager for La Quadrature du Net
================================================

4
This is the code and configuration used by [La Quadrature du Net](https://www.laquadrature.net) for its public Jabber/Xmpp chat service at https://jabber.lqdn.fr/
5

6
It is distributed under the [aGPLv3+](COPYRIGHT) License.
7

8 9
Web control panel
-------------------
10

11
To install the web control panel, proceed as follow (on a debian install)
12

sebzeseb's avatar
sebzeseb committed
13
    aptitude install apache2-mpm-prefork libapache2-mod-php5 php5-mysql mysql-server php5-gd php5-mcrypt prosody pwgen
14 15 16 17 18 19
    
* Create an account and a database on the mysql server, insert the dump.sql file into that database
* Edit the configuration file my/config.sample.php and rename it to my/config.php
* configure [Prosody](https://prosody.im/) with the module [mod_admin_telnet](https://prosody.im/doc/modules/mod_admin_telnet) enabled on port 5582.
* add the cron.php script to the weekly crontab
* point an Apache alias on /my to the /my folder
20

21
The header.php and footer.php files are generated automatically in our case. Change them according to your needs to get a nice webpage instead of our own blog's template ;) 
22

23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
Prosody configuration
---------------------

This git repository contains our prosody configuration file. Use it and tweak it to your own needs

Please note that we used some modules from Prosody-modules, which need to be copied from their mercurial repository to /usr/lib/prosody/modules/ before running with our configuration file


Apache2 configuration
---------------------

This git repository contains our apache configuration files in apache2/ Use them and tweak them to your own needs

Iptables configuration
----------------------

This git repository also contains our iptables / Linux Firewall configuration. tweak them to your own needs


Software used in this project
-----------------------------

We would like to thank the free software we use in this public service:

* [Debian](https://www.debian.org/)
* [Prosody](https://prosody.im/)
* [Cool Captcha](https://code.google.com/p/cool-php-captcha/)
* [PhpMailer](https://github.com/PHPMailer/PHPMailer)
* [Prosody-Modules](https://code.google.com/p/prosody-modules/)
* and of course all the usual software to run the Internet fluently ;) (Apache, MySQL, Php, Wordpress, cur, grep, sed, awk, bash, linux, und so weiter...)


TODO
----

test the following modules :

* https://code.google.com/p/prosody-modules/wiki/mod_log_auth + fail2ban (to prevent multiple failed authorizations requests from a single IP address) (warning, in that case only keep 1 day of prosody log!)
* https://code.google.com/p/prosody-modules/wiki/mod_limits to limit the bandwidth allocated to each IP address.
62