diff options
author | tv <tv@krebsco.de> | 2016-12-23 10:46:26 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-12-23 11:09:12 +0100 |
commit | 563c7a7eafb273bdeed6f209cea66618cb8ac127 (patch) | |
tree | 934b92301c244f165f2c110317d63a1e3f0aca91 /tv/2configs/nginx | |
parent | 7a3e08e967da0452c76ffc10d1f6c476718c77df (diff) |
tv nginx: return 404 by default
Diffstat (limited to 'tv/2configs/nginx')
-rw-r--r-- | tv/2configs/nginx/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tv/2configs/nginx/default.nix b/tv/2configs/nginx/default.nix index 277f459f0..0e6c2df0e 100644 --- a/tv/2configs/nginx/default.nix +++ b/tv/2configs/nginx/default.nix @@ -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; |