tv nginx: return 404 by default

This commit is contained in:
tv 2016-12-23 10:46:26 +01:00
parent eafa36c2b1
commit 7efec736b2

View File

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