Unverified Commit 1253ffb0 authored by Janne Heß's avatar Janne Heß Committed by GitHub
Browse files

nixos/netbird-dashboard: fixes 404.html not being served (#487438)

parents 3ddeeda4 d90b7846
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -168,13 +168,12 @@ in
      enable = true;

      virtualHosts.${cfg.domain} = {
        locations = {
          "/" = {
        root = cfg.finalDrv;
            tryFiles = "$uri $uri.html $uri/ =404";
          };

          "/404.html".extraConfig = ''
        locations = {
          "/".tryFiles = "$uri $uri.html $uri/ =404";

          "= /404.html".extraConfig = ''
            internal;
          '';
        };