From 53bb7a1fc7200ceba84a281c63ddf2c07dab0e7e Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 14 May 2023 14:30:58 -0400 Subject: p-body: add status subdomain --- hosts/p-body/nginx.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hosts/p-body/nginx.nix b/hosts/p-body/nginx.nix index 775bd05..0be0f5b 100644 --- a/hosts/p-body/nginx.nix +++ b/hosts/p-body/nginx.nix @@ -65,6 +65,20 @@ in { locations = mkProxy "/" "3000"; }; + + "status.${domain}" = { + enableACME = true; + serverAliases = ["www.status.${domain}"]; + locations."/" = { + root = + pkgs.writeTextDir "notindex.html" + '' + lol + ''; + index = "index.html"; + tryFiles = "$uri =404"; + }; + }; }; }; } -- cgit v1.2.3