From 7fda6155777b3342c7f10048cfe96fad5b634ce0 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Thu, 19 Sep 2024 19:08:48 +0530 Subject: [PATCH] wynne: refactor --- hosts/wynne/services/apps/ntfy.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/wynne/services/apps/ntfy.nix b/hosts/wynne/services/apps/ntfy.nix index 7a90fc1..d81a9a0 100644 --- a/hosts/wynne/services/apps/ntfy.nix +++ b/hosts/wynne/services/apps/ntfy.nix @@ -9,13 +9,16 @@ in "${domainName}" = { logFormat = logFormat domainName; extraConfig = '' - reverse_proxy 127.0.0.1:8080 + reverse_proxy ${config.services.ntfy-sh.settings.listen-http} ''; }; "${config.networking.hostName}.labs.adtya.xyz" = { logFormat = logFormat domainName; extraConfig = '' - reverse_proxy /ntfy-metrics 127.0.0.1:8081 + handle /ntfy-metrics { + uri replace /ntfy-metrics /metrics + reverse_proxy ${config.services.ntfy-sh.settings.metrics-listen-http} + } ''; }; };