summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorAlan Pearce2024-05-15 22:29:06 +0200
committerAlan Pearce2024-05-15 22:29:06 +0200
commitf134b702150f49f8ecaac7d3a1948422fd182592 (patch)
tree8662ed0f8722eb32d6e97dc1b7923b5e8af7662a /system
parentd9d6a8541ee5b0968719a4cdbe5b3506e3603dee (diff)
downloadnixfiles-f134b702150f49f8ecaac7d3a1948422fd182592.tar.lz
nixfiles-f134b702150f49f8ecaac7d3a1948422fd182592.tar.zst
nixfiles-f134b702150f49f8ecaac7d3a1948422fd182592.zip
linde: add health checks to searchix
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 9cf9d32b..00041ae9 100644
--- a/system/linde.nix
+++ b/system/linde.nix
@@ -691,7 +691,10 @@ in
       "searchix.alanpearce.eu" = {
         useACMEHost = "alanpearce.eu";
         extraConfig = ''
-          reverse_proxy localhost:${toString config.services.searchix.settings.web.port}
+          reverse_proxy localhost:${toString config.services.searchix.settings.web.port} {
+            health_uri /health
+            health_status 2xx
+          }
           encode zstd gzip {
             match {
               header Content-Type text/*