nginx: fix auth_basic
authorJulien Moutinho <julm@sourcephile.fr>
Wed, 15 Jul 2020 00:40:41 +0000 (02:40 +0200)
committerJulien Moutinho <julm@sourcephile.fr>
Wed, 15 Jul 2020 00:40:41 +0000 (02:40 +0200)
servers/losurdo/nginx/sourcephile.fr/losurdo.nix

index 01e231e351e3766d1868f31ea9850ad14aecd1a5..4886e5b7465cbf25500f47853ba070fada088b6a 100644 (file)
@@ -23,12 +23,16 @@ services.nginx = {
     locations."/".extraConfig = ''
       autoindex off;
     '';
-    locations."/sevy".extraConfig = ''
+    locations."/julm".extraConfig = ''
+      autoindex on;
       fancyindex on;
-      fancyindex_name_length 255;
       fancyindex_exact_size off;
+      fancyindex_name_length 255;
+    '';
+    locations."/sevy".extraConfig = ''
       auth_basic "sevy's area";
       auth_basic_user_file ${pass.secrets."nginx/sevy/htpasswd".path};
+      autoindex off;
     '';
   };
 };