diff --git a/mail-server.nix b/mail-server.nix index 589ef35..7e03f68 100644 --- a/mail-server.nix +++ b/mail-server.nix @@ -204,7 +204,7 @@ in { virtualHosts = let mailHostnames = unique [ cfg.smtp.hostname cfg.imap.hostname ]; in genAttrs mailHostnames (hostname: { - "${hostname}".locations."/metrics" = { + locations."/metrics" = { proxyPass = "http://localhost:${toString metricsPort}/metrics"; }; });