Commit 93d13ac99c0b

Vincent Demeester <vincent@sbr.pm>
2022-05-31 13:56:42
git-annex in naruhodo
1 parent c1e8fe9
Changed files (1)
systems
systems/hosts/kerkouane.nix
@@ -237,6 +237,10 @@ in
         locations."/" = {
           index = "index.html";
           extraConfig = ''
+            if ($request_uri ~ ^/(.*)\.html) {
+               return 302 /$1;
+            }
+            try_files $uri $uri.html $uri/ =404;
             fancyindex on;
             fancyindex_localtime on;
             fancyindex_exact_size off;