diff options
Diffstat (limited to '')
-rw-r--r-- | nixosConfigurations/manwe/webserver.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nixosConfigurations/manwe/webserver.nix b/nixosConfigurations/manwe/webserver.nix index f07d545..9e19474 100644 --- a/nixosConfigurations/manwe/webserver.nix +++ b/nixosConfigurations/manwe/webserver.nix @@ -13,7 +13,14 @@ with lib; { "bitwarden.${shire}".locations."/".return = "301 https://vaultwarden.${shire}"; ${azahi} = { serverAliases = ["frodo.${gondor}" "frodo.${rohan}"]; - locations."/".root = inputs.azahi-cc; + locations."/" = { + root = inputs.azahi-cc; + extraConfig = '' + sub_filter '</head>' + '<script defer data-domain="${azahi}" src="https://plausible.shire.net/js/script.js"></script></head>'; + sub_filter_once on; + ''; + }; }; } // (let |