summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorAlan Pearce2024-06-22 12:05:27 +0200
committerAlan Pearce2024-06-22 12:05:27 +0200
commit261501d35522c4bc4927624737ab6ab06a13991e (patch)
tree3f915e02b117714adc6bc978ddce39affe7b7211 /system
parentac9f115812df258b1c083cef11573ed8ba6a4367 (diff)
downloadnixfiles-261501d35522c4bc4927624737ab6ab06a13991e.tar.lz
nixfiles-261501d35522c4bc4927624737ab6ab06a13991e.tar.zst
nixfiles-261501d35522c4bc4927624737ab6ab06a13991e.zip
linde: add health check for ntfy
Diffstat (limited to 'system')
-rw-r--r--system/linde.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/linde.nix b/system/linde.nix
index 543b6e42..6af420bb 100644
--- a/system/linde.nix
+++ b/system/linde.nix
@@ -685,7 +685,10 @@ in
           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" = {