Add metrics endpoint

This commit is contained in:
niten 2024-05-24 09:37:12 -07:00
parent bfe969884d
commit da28a1c26b
1 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,10 @@ in {
virtualHosts = genAttrs cfg.hostnames (hostname: {
enableACME = false;
forceSSL = false;
locations."/metrics" = {
proxyPass = "http://127.0.0.1:${toString cfg.metrics-port}";
recommendedProxySettings = true;
};
locations."/" = {
proxyPass = "http://127.0.0.1:${toString cfg.port}";
recommendedProxySettings = true;