mermet: nginx: autogeree.net: www: publish camera captures in by-uuid
authorJulien Moutinho <julm+sourcephile-nix@sourcephile.fr>
Wed, 1 Mar 2023 23:51:54 +0000 (00:51 +0100)
committerJulien Moutinho <julm+sourcephile-nix@sourcephile.fr>
Wed, 1 Mar 2023 23:51:54 +0000 (00:51 +0100)
hosts/mermet/nginx/autogeree.net/www.nix

index c3879c1776661fff73e4c4d455e18042f57afeb3..e644af7fd3b94f3e38a3a30e8a53ed6355ece383 100644 (file)
@@ -55,6 +55,13 @@ in
           fancyindex_exact_size off;
         '';
       };
+      # Disable basicAuthFile for by-uuid
+      locations."~ ^/julm/perso/camera/([0-9]+/[0-9][0-9]/by-uuid/[0-9a-f-]+/.+)$" = {
+        alias = "${root}/julm/perso/camera/$1";
+        extraConfig = ''
+          autoindex off;
+        '';
+      };
     };
   };
 }