From 6ad72aa37e4bc086a0648682b25e43f85d0fe43e Mon Sep 17 00:00:00 2001 From: Sam W Date: Wed, 31 May 2023 15:19:23 +0800 Subject: [PATCH] nixos/pixelfed: fix broken try_files Add missing $ to try files directive. This fixes pixelfed federation and search, amongst presumably many other things! --- nixos/modules/services/web-apps/pixelfed.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/pixelfed.nix b/nixos/modules/services/web-apps/pixelfed.nix index 58ac307fd1ed..430a368650ec 100644 --- a/nixos/modules/services/web-apps/pixelfed.nix +++ b/nixos/modules/services/web-apps/pixelfed.nix @@ -448,7 +448,7 @@ in { cfg.nginx { root = lib.mkForce "${pixelfed}/public/"; - locations."/".tryFiles = "$uri $uri/ /index.php?query_string"; + locations."/".tryFiles = "$uri $uri/ /index.php?$query_string"; locations."/favicon.ico".extraConfig = '' access_log off; log_not_found off; '';