restrict mailman to university networks
This commit is contained in:
parent
35ae1a27f5
commit
d48222784b
1 changed files with 8 additions and 0 deletions
|
@ -31,5 +31,13 @@
|
||||||
services.nginx.virtualHosts."lists.${config.fsr.domain}" = {
|
services.nginx.virtualHosts."lists.${config.fsr.domain}" = {
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
# deny non-uni access to prevent sending dozens of confirm emails
|
||||||
|
locations."/mailman3".extraConfig = ''
|
||||||
|
allow 141.30.0.0/16;
|
||||||
|
allow 141.76.0.0/16;
|
||||||
|
allow 172.16.0.0/16;
|
||||||
|
deny all;
|
||||||
|
uwsgi_pass unix:/run/mailman-web.socket;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue