diff --git a/hosts/defiant/services/pihole.nix b/hosts/defiant/services/pihole.nix index f6e65ee..66a6ca2 100644 --- a/hosts/defiant/services/pihole.nix +++ b/hosts/defiant/services/pihole.nix @@ -30,6 +30,12 @@ in { rewrite /(.*) /admin/$1 break; ''; }; + + locations."/admin" = { + extraConfig = '' + rewrite ^/admin/(.*) $scheme://${domain}/$1 break; + ''; + }; }; }