From 897410f8df954977759cd8b01f935cb230532897 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Tue, 22 Aug 2023 14:32:23 +0200 Subject: [PATCH] ftp: enable fancy index --- modules/ftp.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/ftp.nix b/modules/ftp.nix index d47eee0..9eb475a 100644 --- a/modules/ftp.nix +++ b/modules/ftp.nix @@ -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;