ftp: make wget scrape friendly

This commit is contained in:
Sandro - 2023-12-26 04:14:03 +01:00
parent 7061bc1910
commit 20c102e264
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 4 additions and 1 deletions

View File

@ -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;