summaryrefslogtreecommitdiffstats
path: root/tv/2configs/nginx
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-12-23 10:46:26 +0100
committertv <tv@krebsco.de>2016-12-23 11:09:12 +0100
commitd773066fc24dd241a954bc6db9c9c007267138a3 (patch)
tree17dfd5b3e5e58f32413675fdd55f7d30d2f4a09b /tv/2configs/nginx
parent02f0ca1ff02e2d3b57e6eda924f829ba47390ca8 (diff)
tv nginx: return 404 by default
Diffstat (limited to 'tv/2configs/nginx')
-rw-r--r--tv/2configs/nginx/default.nix7
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;