From 1d3030a6997d07d65385f57166e2d8b4f918a563 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 8 Jun 2021 01:29:50 +0200 Subject: [PATCH] azazel: add directory listing to preklady.fcp.cz/comic/data/prelozit The drecory has `Options +Indexes` in `.htaccess` --- hosts/azazel/fan-club-penguin.cz/preklady/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/azazel/fan-club-penguin.cz/preklady/default.nix b/hosts/azazel/fan-club-penguin.cz/preklady/default.nix index e4c4597..eac058a 100644 --- a/hosts/azazel/fan-club-penguin.cz/preklady/default.nix +++ b/hosts/azazel/fan-club-penguin.cz/preklady/default.nix @@ -22,6 +22,11 @@ in { try_files $uri $uri/ /comic/index.php; } + location /comic/data/prelozit { + fancyindex on; # Enable directory listing. + fancyindex_exact_size off; # Use human-readable file sizes. + } + location ~ \.php$ { ${enablePHP "fcp"} }