From e5ea31010b0e1826d41168ac27e371f0827325da Mon Sep 17 00:00:00 2001 From: mtrossevin Date: Mon, 15 Nov 2021 11:19:25 +0100 Subject: [PATCH] =?UTF-8?q?Documente=20wwsympa=20en=20tant=20que=20service?= =?UTF-8?q?=20s=C3=A9par=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoSympa.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/HowtoSympa.md b/HowtoSympa.md index 1315aaf2..aae9113c 100644 --- a/HowtoSympa.md +++ b/HowtoSympa.md @@ -128,6 +128,48 @@ Vous devez créer un VirtualHost du type après avoir désactivé la configurati On conseille bien sûr de l'activer en [HTTPS](HowtoSSL), par exemple avec [Let's Encrypt](HowtoLetsEncrypt). +#### Avec un service FastCGI séparé + +Il est aussi possible de faire tourner wwsympa.fcgi en tant que service fastcgi séparé avec spawn-fcgi (entre autre solutions), un service systemd pour cette méthode est le suivant: + +~~~ { .ini } +[Unit] +Description=WWSympa - Web interface for Sympa mailing list manager +After=syslog.target sympa.service + +[Service] +Type=forking +User=sympa +Group=sympa +ExecStart=!/usr/bin/spawn-fcgi -F 5 -P /run/sympa/wwsympa.pid -s /run/sympa/wwsympa.socket -u sympa -g sympa -M 0660 -G www-data -- /usr/lib/cgi-bin/sympa/wwsympa.fcgi +Restart=always + +RuntimeDirectory=sympa +RuntimeDirectoryPreserve=yes +PIDFile=/run/sympa/wwsympa.pid +~~~ + +La configuration du vhost apache devient alors : + +~~~ { .apache } + + ServerName lists.example.com + RedirectMatch ^/$ /wws/ + #Include /etc/apache2/ssl/sympa.conf + + Alias /static-sympa /var/lib/sympa/static_content + + Require all granted + + + + SetHandler "proxy:unix:/run/sympa/wwsympa.socket|fcgi://" + Require all granted + + + +~~~ + ### DKIM Génération des clés DKIM :