2022-12-09 01:31:56 +01:00
|
|
|
with import ./lib;
|
|
|
|
{ config, ... }: {
|
2016-12-23 09:46:32 +01:00
|
|
|
services.nginx = {
|
2022-08-20 22:32:00 +02:00
|
|
|
enableReload = true;
|
|
|
|
|
2016-12-23 11:09:36 +01:00
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
|
2022-08-20 21:50:48 +02:00
|
|
|
virtualHosts.${toJSON ""} = {
|
2016-12-23 10:46:26 +01:00
|
|
|
default = true;
|
|
|
|
extraConfig = ''
|
2022-08-20 21:50:48 +02:00
|
|
|
error_page 400 =444 /;
|
|
|
|
return 444;
|
2016-12-23 09:46:32 +01:00
|
|
|
'';
|
2022-08-20 21:50:48 +02:00
|
|
|
rejectSSL = true;
|
2016-12-23 09:46:32 +01:00
|
|
|
};
|
2016-03-05 12:57:46 +01:00
|
|
|
};
|
2016-12-23 09:46:32 +01:00
|
|
|
tv.iptables = {
|
2016-06-30 00:52:35 +02:00
|
|
|
input-retiolum-accept-tcp = singleton "http";
|
2016-03-05 12:57:46 +01:00
|
|
|
};
|
|
|
|
}
|