From 1111cc95dab3fd8dd50d5d04bb1b900fc7ef1bef Mon Sep 17 00:00:00 2001
From: Julien Moutinho <julm+julm-nix@sourcephile.fr>
Date: Wed, 11 Oct 2023 23:55:35 +0200
Subject: [PATCH] aubergine: nginx: disable fancyindex

---
 hosts/aubergine/nginx.nix           |  2 ++
 hosts/aubergine/nginx/aubergine.nix | 12 ++++++------
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/hosts/aubergine/nginx.nix b/hosts/aubergine/nginx.nix
index 797129d..ef3c467 100644
--- a/hosts/aubergine/nginx.nix
+++ b/hosts/aubergine/nginx.nix
@@ -26,11 +26,13 @@ in
   */
   services.nginx = {
     enable = true;
+    /*
     package = pkgs.nginx.override {
       modules = with pkgs.nginxModules; [
         fancyindex
       ];
     };
+    */
     resolver = {
       addresses = [ "127.0.0.1:53" ];
       valid = "";
diff --git a/hosts/aubergine/nginx/aubergine.nix b/hosts/aubergine/nginx/aubergine.nix
index 35f7983..4797b5d 100644
--- a/hosts/aubergine/nginx/aubergine.nix
+++ b/hosts/aubergine/nginx/aubergine.nix
@@ -30,9 +30,9 @@ in
         #basicAuthFile = gnupg.secrets."nginx/perso/htpasswd".path;
         extraConfig = ''
           autoindex on;
-          fancyindex on;
-          fancyindex_exact_size off;
-          fancyindex_name_length 255;
+          #fancyindex on;
+          #fancyindex_exact_size off;
+          #fancyindex_name_length 255;
           open_file_cache off;
           #open_file_cache_valid 1s;
         '';
@@ -41,9 +41,9 @@ in
         #basicAuthFile = gnupg.secrets."nginx/perso/htpasswd".path;
         extraConfig = ''
           autoindex on;
-          fancyindex on;
-          fancyindex_exact_size off;
-          fancyindex_name_length 255;
+          #fancyindex on;
+          #fancyindex_exact_size off;
+          #fancyindex_name_length 255;
           open_file_cache off;
           #open_file_cache_valid 1s;
         '';
-- 
2.47.2