tv nginx: close requests with bad Host header

This commit is contained in:
tv 2022-08-20 21:50:48 +02:00
parent 4f9e622534
commit 587015b9d7

View File

@ -8,18 +8,13 @@ with import <stockholm/lib>;
recommendedOptimisation = true;
recommendedTlsSettings = true;
virtualHosts._http = {
virtualHosts.${toJSON ""} = {
default = true;
extraConfig = ''
return 404;
'';
};
virtualHosts.default = {
locations."= /etc/os-release".extraConfig = ''
default_type text/plain;
alias /etc/os-release;
error_page 400 =444 /;
return 444;
'';
rejectSSL = true;
};
};
tv.iptables = {