From d90b78463926318319ffb65dff370c2b482e8f65 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Thu, 5 Feb 2026 22:51:09 +0100 Subject: [PATCH] nixos/netbird-dashboard: fixes 404.html not being served --- .../modules/services/networking/netbird/dashboard.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/nixos/modules/services/networking/netbird/dashboard.nix b/nixos/modules/services/networking/netbird/dashboard.nix index 3cddb34a8ac0..4efe1f4dfba3 100644 --- a/nixos/modules/services/networking/netbird/dashboard.nix +++ b/nixos/modules/services/networking/netbird/dashboard.nix @@ -168,13 +168,12 @@ in enable = true; virtualHosts.${cfg.domain} = { - locations = { - "/" = { - root = cfg.finalDrv; - tryFiles = "$uri $uri.html $uri/ =404"; - }; + root = cfg.finalDrv; - "/404.html".extraConfig = '' + locations = { + "/".tryFiles = "$uri $uri.html $uri/ =404"; + + "= /404.html".extraConfig = '' internal; ''; };