diff --git a/hosts/ftp/default.nix b/hosts/ftp/default.nix index 02c8fa3b..1fb30a09 100644 --- a/hosts/ftp/default.nix +++ b/hosts/ftp/default.nix @@ -48,9 +48,12 @@ locations."/" = { root = "/var/www/ftp.c3d2.de"; - extraConfig = '' + extraConfig = /* nginx */ '' charset UTF-8; # fix mojibake + # better wget scraping ;) + rewrite /(.*)index.html?$ /$1; + fancyindex on; fancyindex_exact_size off; fancyindex_css_href /.theme/style.css;