|
|
@ -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 |
|
|
|
``` |
|
|
|
<VirtualHost *:80> |
|
|
|
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 |