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 }};
|
|
|
|
|
2022-07-04 21:59:10 +02:00
|
|
|
root /var/www/html/;
|
2016-04-08 20:00:21 +02:00
|
|
|
|
|
|
|
location /.well-known/acme-challenge {
|
|
|
|
default_type "text/plain";
|
|
|
|
alias /var/www/acme-challenge;
|
|
|
|
}
|
|
|
|
|
2016-02-29 21:29:44 +01:00
|
|
|
location = / {
|
2022-05-09 20:58:19 +02:00
|
|
|
rewrite ^ /mailman3 redirect;
|
2016-02-29 21:29:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
2022-07-04 21:59:10 +02:00
|
|
|
rewrite ^ /mailman3 redirect;
|
2016-02-29 21:29:44 +01:00
|
|
|
}
|
2016-02-29 21:55:12 +01:00
|
|
|
|
2022-05-09 20:58:19 +02:00
|
|
|
location = /listinfo {
|
|
|
|
rewrite ^ /mailman3 redirect;
|
|
|
|
}
|
|
|
|
|
2021-12-02 14:28:26 +01:00
|
|
|
location /mailman3/ {
|
|
|
|
include /etc/nginx/uwsgi_params;
|
|
|
|
uwsgi_pass unix:/run/mailman3-web/uwsgi.sock;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /mailman3/static {
|
|
|
|
alias /var/lib/mailman3/web/static;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /mailman3/static/favicon.ico {
|
|
|
|
alias /var/lib/mailman3/web/static/postorius/img/favicon.ico;
|
|
|
|
}
|
2016-02-29 21:29:44 +01:00
|
|
|
}
|