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-24 06:52:34 +0100
commit7efec736b299d1c0235d2c12064b3afc1e5e13ff (patch)
treef4fac534a742d424af69cd77e0022e3ee3b08d56 /tv/2configs/nginx
parenteafa36c2b10ddf16163007aa58ed5e2444c251b6 (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 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;