all repos — nixfiles @ 261501d35522c4bc4927624737ab6ab06a13991e

System and user configuration, managed by nix and home-manager

linde: add health check for ntfy
Alan Pearce alan@alanpearce.eu
Sat, 22 Jun 2024 12:05:27 +0200
commit

261501d35522c4bc4927624737ab6ab06a13991e

parent

ac9f115812df258b1c083cef11573ed8ba6a4367

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M system/linde.nixsystem/linde.nix
@@ -685,7 +685,10 @@ useACMEHost = "alanpearce.eu";           extraConfig = ''
             encode zstd gzip
             ${security-headers {}}
-            reverse_proxy localhost${config.services.ntfy-sh.settings.listen-http}
+            reverse_proxy localhost${config.services.ntfy-sh.settings.listen-http} {
+              health_uri /v1/health
+              health_body `"healthy":true`
+            }
           '';
         };
         "searchix.alanpearce.eu" = {