add index of pki

This commit is contained in:
Fabian Montero 2024-09-18 20:51:09 -06:00
parent 9aa997637f
commit eda3ab9aab
Signed by untrusted user: fabian
GPG key ID: 1FFAC35E1798174F
5 changed files with 58 additions and 2 deletions

View file

@ -32,7 +32,19 @@ with lib; {
"posixlycorrect.com" = {
forceSSL = true;
enableACME = true;
root = "${pkgs.local.homepage}";
locations = {
"/".root = "${pkgs.local.homepage}";
"~ ^/pki(?:/(.*))?$" = { # https://serverfault.com/a/476368
alias = "${../../pki}/$1";
extraConfig = ''
autoindex on;
autoindex_exact_size on;
autoindex_localtime on;
autoindex_format html;
'';
};
};
};
};
};