services/nginx: return 444 on unknown domains
This commit is contained in:
parent
2107d55b11
commit
3f26f71867
1 changed files with 10 additions and 0 deletions
|
|
@ -14,6 +14,16 @@
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
root = inputs.website.outPath;
|
root = inputs.website.outPath;
|
||||||
};
|
};
|
||||||
|
"_" = {
|
||||||
|
default = true;
|
||||||
|
addSSL = true;
|
||||||
|
# TODO generate this somewhere
|
||||||
|
sslCertificate = "/persist/fakeCerts/fake.crt";
|
||||||
|
sslCertificateKey = "/persist/fakeCerts/fake.key";
|
||||||
|
extraConfig = ''
|
||||||
|
return 444;
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue