From bf8bed38797d45076c8f4589dbb4667ff9a0a257 Mon Sep 17 00:00:00 2001 From: Ivan Reshetnikov Date: Sun, 17 Nov 2024 23:19:46 +0500 Subject: [PATCH] Add health check for my website --- roles/haproxy/files/haproxy.cfg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/haproxy/files/haproxy.cfg b/roles/haproxy/files/haproxy.cfg index e8fe6a3..b25805d 100644 --- a/roles/haproxy/files/haproxy.cfg +++ b/roles/haproxy/files/haproxy.cfg @@ -136,8 +136,10 @@ frontend authentik_ldap backend comfycamp mode http + option httpchk GET /health + http-check expect status 200 http-response set-header Onion-Location http://comfycgmgfvowbbw2ckkobuvk4cejo2e56uxrhznravxnrl7itftpkad.onion%[capture.req.uri] - server green comfycamp:4000 check + server s1 comfycamp:4000 check inter 15s backend mastodon mode http