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"; domain = "ftp.ifsr.de";
in in
{ {
services.nginx.additionalModules = [pkgs.nginxModules.fancyindex];
services.nginx.virtualHosts."${domain}" = { services.nginx.virtualHosts."${domain}" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
root = "/srv/ftp"; root = "/srv/ftp";
extraConfig = '' extraConfig = ''
autoindex on; fancyindex on;
fancyindex_exact_size off;
''; '';
locations."~/(klausuren|uebungen|skripte|abschlussarbeiten)".extraConfig = '' locations."~/(klausuren|uebungen|skripte|abschlussarbeiten)".extraConfig = ''
allow 141.30.0.0/16; allow 141.30.0.0/16;