Infini-OPTIPLEX: refactor testing site

This commit is contained in:
Infinidoge 2024-04-26 04:27:04 -04:00
parent c190d21228
commit a71311222d
Signed by: Infinidoge
SSH key fingerprint: SHA256:VEv3zmkBzcYYle6/37h+BbOyNDbGy/o8SHh7fcs9RbQ

View file

@ -19,19 +19,22 @@ in
}; };
}; };
"test.inx.moe" = ssl // { "test.inx.moe" = ssl // {
root = "/srv/web/inx.moe";
locations."/" = { locations."/" = {
tryFiles = "$uri $uri.html =404"; root = "/srv/web/inx.moe";
tryFiles = "$uri $uri.html $uri/ =404";
extraConfig = '' extraConfig = ''
deny all; deny all;
location ~ "\.(html|css|txt)" { error_page 403 404 /404.html;
allow all;
}
location = /template.html { location = /template.html { deny all; }
deny all; location /.git { deny all; }
};
location = /404.html { allow all; internal; }
location ~* "\.(html|css|txt)$" { allow all; }
location ~ "/[^.]+" { allow all; }
location ~ "/$" { allow all; }
''; '';
}; };
}; };