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;
|
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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user