2021-05-01 15:13:49 -04:00
|
|
|
server {
|
|
|
|
listen 443 ssl http2;
|
|
|
|
listen [::]:443 ssl http2;
|
|
|
|
server_name lists.libraryofcode.org;
|
|
|
|
|
|
|
|
ssl_certificate /etc/nginx/ssl/org.chain.crt;
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/org.key.pem;
|
|
|
|
|
|
|
|
client_max_body_size 1G;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
return 307 $scheme://lists.libraryofcode.org/cgi-bin/mailman/listinfo;
|
|
|
|
}
|
2022-02-15 00:26:44 -05:00
|
|
|
|
2021-05-01 15:13:49 -04:00
|
|
|
location /cgi-bin/mailman {
|
|
|
|
root /usr/lib/;
|
|
|
|
fastcgi_split_path_info (^/cgi-bin/mailman/[^/]*)(.*)$;
|
|
|
|
include /etc/nginx/fastcgi_params;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
|
|
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
|
|
|
|
fastcgi_intercept_errors on;
|
|
|
|
fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
|
|
|
}
|
2022-02-15 00:26:44 -05:00
|
|
|
|
2021-05-01 15:13:49 -04:00
|
|
|
location /images/mailman {
|
|
|
|
alias /usr/share/images/mailman;
|
|
|
|
}
|
2022-02-15 00:26:44 -05:00
|
|
|
|
2021-05-01 15:13:49 -04:00
|
|
|
location /pipermail {
|
|
|
|
alias /var/lib/mailman/archives/public;
|
|
|
|
autoindex on;
|
|
|
|
}
|
|
|
|
}
|