prevent hostless access
This commit is contained in:
parent
65ced5335c
commit
f8de5f317f
1 changed files with 8 additions and 0 deletions
|
@ -107,6 +107,14 @@ in {
|
|||
${realIpsFromList cfipv6}
|
||||
real_ip_header CF-Connecting-IP;
|
||||
'';
|
||||
|
||||
# prevent leaking domain through direct ip access or no host
|
||||
# generally a good idea to keep this
|
||||
virtualHosts."_"= {
|
||||
default = true;
|
||||
rejectSSL = true;
|
||||
locations."/".return = 444;
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 443 80 ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue