tv nginx: close requests with bad Host header
This commit is contained in:
parent
4f9e622534
commit
587015b9d7
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user