home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit 5fba07ae925516874b4aa7885c59ccd4ec404456
parent 9d73ff0dab77238f475edf0a8d9aef68ba23ece8
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 10 Jun 2022 17:46:41 +0200

systems/kerkouane: use default_type

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Msystems/hosts/kerkouane.nix | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/systems/hosts/kerkouane.nix b/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;