ftp: enable fancy index

This commit is contained in:
Rouven Seifert 2023-08-22 14:32:23 +02:00
parent 7a902d6b8d
commit 897410f8df
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09

View file

@ -3,12 +3,14 @@ let
domain = "ftp.ifsr.de";
in
{
services.nginx.additionalModules = [pkgs.nginxModules.fancyindex];
services.nginx.virtualHosts."${domain}" = {
enableACME = true;
forceSSL = true;
root = "/srv/ftp";
extraConfig = ''
autoindex on;
fancyindex on;
fancyindex_exact_size off;
'';
locations."~/(klausuren|uebungen|skripte|abschlussarbeiten)".extraConfig = ''
allow 141.30.0.0/16;