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 | d773066fc24dd241a954bc6db9c9c007267138a3 (patch) | |
tree | 17dfd5b3e5e58f32413675fdd55f7d30d2f4a09b /tv/2configs/nginx | |
parent | 02f0ca1ff02e2d3b57e6eda924f829ba47390ca8 (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 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; |