mailman: restrict registration to tud nets

This commit is contained in:
Rouven Seifert 2024-04-26 22:40:18 +02:00
parent 579ad274d5
commit ebe977672a
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -66,6 +66,14 @@
ensureDatabases = [ "mailman" "mailman-web" ]; ensureDatabases = [ "mailman" "mailman-web" ];
}; };
services.nginx.virtualHosts."lists.${config.networking.domain}" = { services.nginx.virtualHosts."lists.${config.networking.domain}" = {
locations."/accounts/signup" = {
extraConfig = ''
allow 141.30.0.0/16;
allow 141.76.0.0/16;
deny all;
uwsgi_pass unix:/run/mailman-web.socket;
'';
};
locations."/robots.txt" = { locations."/robots.txt" = {
extraConfig = '' extraConfig = ''
add_header Content-Type text/plain; add_header Content-Type text/plain;