From be1ee5c848f1c4d624210c134f714b5ca69ab093 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Fri, 26 Apr 2024 02:54:41 -0400 Subject: [PATCH] Infini-OPTIPLEX: add testing site --- hosts/Infini-OPTIPLEX/web.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hosts/Infini-OPTIPLEX/web.nix b/hosts/Infini-OPTIPLEX/web.nix index 18ca468..28b52c2 100644 --- a/hosts/Infini-OPTIPLEX/web.nix +++ b/hosts/Infini-OPTIPLEX/web.nix @@ -18,6 +18,23 @@ in ''; }; }; + "test.inx.moe" = { + root = "/srv/web/inx.moe"; + locations."/" = { + tryFiles = "$uri $uri.html =404"; + extraConfig = '' + deny all; + + location ~ "\.(html|css|txt)" { + allow all; + } + + location = /template.html { + deny all; + }; + ''; + }; + }; "ponder.inx.moe" = ssl // { locations."/".root = pkgs.ponder;