From 20c102e26471f5c577fc850284332f0873996eb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 26 Dec 2023 04:14:03 +0100 Subject: [PATCH] ftp: make wget scrape friendly --- hosts/ftp/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;