2016-02-29 21:29:44 +01:00
|
|
|
server {
|
2016-03-01 07:56:37 +01:00
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
|
|
|
|
|
|
|
ssl_certificate /etc/nginx/ssl/{{ mailman_domain }}.crt;
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/{{ mailman_domain }}.key;
|
|
|
|
|
2016-02-29 21:29:44 +01:00
|
|
|
server_name {{ mailman_domain }};
|
|
|
|
|
2016-04-08 20:00:21 +02:00
|
|
|
root /usr/lib/cgi-bin/mailman/;
|
|
|
|
|
|
|
|
location /.well-known/acme-challenge {
|
|
|
|
default_type "text/plain";
|
|
|
|
alias /var/www/acme-challenge;
|
|
|
|
}
|
|
|
|
|
2016-02-29 21:29:44 +01:00
|
|
|
location = / {
|
2016-04-09 20:41:17 +02:00
|
|
|
rewrite ^ /listinfo permanent;
|
2016-02-29 21:29:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
2016-04-09 20:41:17 +02:00
|
|
|
root /usr/lib/cgi-bin/mailman;
|
|
|
|
fastcgi_split_path_info (^/[^/]*)(.*)$;
|
2016-04-08 20:00:21 +02:00
|
|
|
fastcgi_pass unix:///var/run/fcgiwrap.socket;
|
2016-02-29 21:29:44 +01:00
|
|
|
include /etc/nginx/fastcgi_params;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
|
|
}
|
2016-02-29 21:55:12 +01:00
|
|
|
|
2016-02-29 21:29:44 +01:00
|
|
|
location /images/mailman {
|
|
|
|
alias /usr/share/images/mailman;
|
|
|
|
}
|
2016-02-29 21:55:12 +01:00
|
|
|
|
2016-02-29 21:29:44 +01:00
|
|
|
location /pipermail {
|
|
|
|
alias /var/lib/mailman/archives/public;
|
|
|
|
autoindex on;
|
|
|
|
}
|
|
|
|
}
|