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; recommendedOptimisation = true;
recommendedTlsSettings = true; recommendedTlsSettings = true;
virtualHosts._http = { virtualHosts.${toJSON ""} = {
default = true; default = true;
extraConfig = '' extraConfig = ''
return 404; error_page 400 =444 /;
''; return 444;
};
virtualHosts.default = {
locations."= /etc/os-release".extraConfig = ''
default_type text/plain;
alias /etc/os-release;
''; '';
rejectSSL = true;
}; };
}; };
tv.iptables = { tv.iptables = {