diff options
author | tv <tv@krebsco.de> | 2016-12-23 10:46:26 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-12-24 06:52:34 +0100 |
commit | a848734020a8351f1885d2901a2b850c6c1a842f (patch) | |
tree | 6d3c0dc30e8b659843254352527a8e93731471e9 /tv | |
parent | 79dec30eaa0257020f7925b014b4208e515f2e6e (diff) |
tv nginx: return 404 by default
Diffstat (limited to 'tv')
-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 277f459..0e6c2df 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; |