Commit 5fba07ae9255

Vincent Demeester <vincent@sbr.pm>
2022-06-10 17:46:41
systems/kerkouane: use default_type
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 9d73ff0
Changed files (1)
systems
systems/hosts/kerkouane.nix
@@ -237,9 +237,7 @@ in
         locations."/" = {
           index = "index.html";
           extraConfig = ''
-            if ($request_uri ~ ^/(.*)\.html) {
-               return 302 /$1;
-            }
+            default_type text/html;
             try_files $uri $uri.html $uri/ =404;
             fancyindex on;
             fancyindex_localtime on;