summaryrefslogtreecommitdiff
path: root/hosts/p-body/nginx.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-14 14:30:58 -0400
committerseth <[email protected]>2023-05-14 14:30:58 -0400
commit53bb7a1fc7200ceba84a281c63ddf2c07dab0e7e (patch)
tree79778499d5ec0917277678728d48ceb03bf4e28f /hosts/p-body/nginx.nix
parent58e8d3946d4f5420d288f72508bd444b929df8bb (diff)
p-body: add status subdomain
Diffstat (limited to 'hosts/p-body/nginx.nix')
-rw-r--r--hosts/p-body/nginx.nix14
1 files changed, 14 insertions, 0 deletions
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";
+ };
+ };
};
};
}