tv nginx: return 404 by default

This commit is contained in:
tv 2016-12-23 10:46:26 +01:00
parent 7a3e08e967
commit 563c7a7eaf

View File

@ -4,6 +4,13 @@ with import <stockholm/lib>;
{
services.nginx = {
virtualHosts._http = {
default = true;
extraConfig = ''
return 404;
'';
};
virtualHosts.default = {
locations."= /etc/os-release".extraConfig = ''
default_type text/plain;