From eb4161749fc878696b1914a96c6c4d0a3440156d Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 29 Dec 2022 03:31:30 +0100 Subject: [PATCH] prometheus: proxy alert2muc thru nginx --- hosts/prometheus/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/prometheus/default.nix b/hosts/prometheus/default.nix index 713624e6..98669767 100644 --- a/hosts/prometheus/default.nix +++ b/hosts/prometheus/default.nix @@ -43,6 +43,7 @@ path_prefix = "/alertmanager"; } { static_configs = [{ + # alert2muc targets = [ "localhost:9022" ]; }]; }]; @@ -128,6 +129,9 @@ auth_basic_user_file ${config.sops.secrets."nginx/httpAuth".path}; ''; }; + locations."/alert2muc" = { + proxyPass = "http://localhost:9022"; + }; }; };