From da28a1c26b3f4177e772e3d09d932808f5dfcd05 Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 24 May 2024 09:37:12 -0700 Subject: [PATCH] Add metrics endpoint --- immich-ml-container.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/immich-ml-container.nix b/immich-ml-container.nix index d7589c1..9f008f5 100644 --- a/immich-ml-container.nix +++ b/immich-ml-container.nix @@ -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;