1
0
nixfiles/hosts/storage-2/share.nix

20 lines
315 B
Nix

{ ... }:
{
services.nginx.virtualHosts = {
"share.clerie.de" = {
enableACME = true;
forceSSL = true;
locations."~ \"/([0-9a-z]+)/\"" = {
root = "/data/share/";
extraConfig = ''
autoindex on;
autoindex_exact_size off;
'';
};
};
};
}