From 82ed3b2a142c18e557ef0ee04b9f11d573b9703d Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 12 Jun 2025 20:41:15 +0400 Subject: [PATCH] install nginx --- README.md | 13 +++++++++---- sympa/TODO.md | 8 ++++++-- sympa/install.md | 46 ++++++++++++++++++++++++++++++++++++++++++++-- sympa/migration.md | 10 +++++++++- 4 files changed, 68 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index ec9d132..8453e34 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # monit-sympa -monitors a list of SYMPA servers and -reports the failed ones +1. monitors a list of SYMPA servers and +1. reports the failed ones -## prerequired +## requirements * GNU Parallel `sudo apt install parallel` @@ -12,6 +12,11 @@ reports the failed ones ```bash ./all.sh ./run_task_in_parrallel.sh tasks/ssh_crontab - ``` +## how to install Sympa + +* [TODO](sympa/TODO.md) +* [install](sympa/install.md) +* [migration](sympa/migration.md) + diff --git a/sympa/TODO.md b/sympa/TODO.md index 8f31224..58afce1 100644 --- a/sympa/TODO.md +++ b/sympa/TODO.md @@ -4,13 +4,17 @@ TODO * [x] tester bon fonctionnement d'une ancienne liste à base de Debian9 * [x] listes.artcode.re * [x] tenir à jour [listes.txt](../listes.txt) - * [ ] listes.voyagesdegulliver.fr ??? + * [x] listes.voyagesdegulliver.fr EFFACÉ * [x] installer un Sympa sur une base Debian 12 récente * [x] souci avec nginx * [x] systemd cgi issue * [x] réessayer apache2 * [x] ok - * [ ] réessayer avec nginx + * [x] réessayer avec nginx + * [x] ça a fonctionné une fois ! + * [ ] mais, je n'arrive pas à reproduire une installation *from scratch*, pas cool :-( +* [ ] tester la version Debian12 avec une IP fixe + * [ ] configurer postfix conformément à la version Debian9 * [ ] migrer une ancienne version de liste de Debian 9 vers la version Debian 12 * [ ] déplacement massif de toutes les anciennes listes * [ ] scripter diff --git a/sympa/install.md b/sympa/install.md index 9319a03..c1976e4 100644 --- a/sympa/install.md +++ b/sympa/install.md @@ -5,7 +5,9 @@ DOC: https://www.sympa.community/manual/install/install-sympa-distribution-debian.html https://wiki.evolix.org/HowtaptoSympa -USE OF: postfix + postgresql + apache2 + fcgi +USE OF: postfix + postgresql + ... + +## Apache2 + fcgi Rk: replace {{PUBLIC_URL}} and {{LISTMASTER}} according to your needs! ``` @@ -25,7 +27,7 @@ LISTMASTER=pvincent@artcode.re * lang: fr * wwsympa_url: http://{{PUBLIC_URL}}/wws * a2enmod rewrite proxy_fcgi -* vim /etc/apache2/sites-available/sympa.conf +* editor /etc/apache2/sites-available/sympa.conf ``` ServerName {{PUBLIC_URL}} @@ -40,3 +42,43 @@ LISTMASTER=pvincent@artcode.re * a2dissite 000-default.conf * a2ensite sympa.conf * systemctl restart apache2 sympa + + +## Nginx + fastcgi + +* apt install -y postfix postgresql nginx fcgiwrap + * domain: {{PUBLIC_URL}} +* apt install -y sympa +* editor /etc/sympa/sympa/sympa.conf + * listmaster: {{LISTMASTER}} + * lang: fr +* editor /etc/nginx/sites-available/sympa.conf +``` +server { + listen 80; + server_name {{PUBLIC_URL}}; + rewrite ^/$ /wws permanent; + + location /wws { + include fastcgi_params; + fastcgi_pass unix:/run/sympa/wwsympa.socket; + } + + location /static-sympa { + alias /usr/share/sympa/static_content; + } + + location /css-sympa { + alias /var/lib/sympa/css; + } + + location /pictures-sympa { + alias /var/lib/sympa/pictures; + } + +} +``` +* cd /etc/nginx/sites-enabled + * rm default + * ln -s ../sites-available/sympa.conf +* systemctl reload nginx diff --git a/sympa/migration.md b/sympa/migration.md index 27877fa..10cdd75 100644 --- a/sympa/migration.md +++ b/sympa/migration.md @@ -1,5 +1,13 @@ Migration ========= +``` From: debian9, sympa 6.2.16 -To: debian12, sympa 6.2.70 \ No newline at end of file +To: debian12, sympa 6.2.70 +``` + +## Documentation + +* https://www.sympa.community/manual/upgrade/in-place.html +* https://www.sympa.community/manual/upgrade/move.html +