1
0
Fork 0

Enable health checking for HAProxy backend servers

- Updated HAProxy configuration templates to include `check` for `srv_stats` and `srv_dashboard` backends.
- Adjusted expected test case outputs to account for the added health check settings.
This commit is contained in:
Joao Gilberto Magalhaes 2026-02-22 20:03:12 -05:00
parent 7e3134155a
commit 4dda1ed631
9 changed files with 15 additions and 15 deletions

File diff suppressed because one or more lines are too long

BIN
docs/dashboard.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

View file

@ -90,7 +90,7 @@ frontend stats
backend srv_stats backend srv_stats
mode http mode http
server Local 127.0.0.1:{{ data_stats["port"] | default(1936) }} server Local 127.0.0.1:{{ data_stats["port"] | default(1936) }} check
frontend dashboard frontend dashboard
bind *:{{ (data_stats["port"] | default(1936) | int) + 10000 }} bind *:{{ (data_stats["port"] | default(1936) | int) + 10000 }}
@ -104,7 +104,7 @@ frontend dashboard
backend srv_dashboard backend srv_dashboard
mode http mode http
server Local 127.0.0.1:{{ dashboard_server_port }} server Local 127.0.0.1:{{ dashboard_server_port }} check
{% endif %} {% endif %}
{% for o in data["easymapping"] -%} {% for o in data["easymapping"] -%}
{% set mode = o["mode"] or "http" %} {% set mode = o["mode"] or "http" %}

View file

@ -35,7 +35,7 @@ frontend stats
backend srv_stats backend srv_stats
mode http mode http
server Local 127.0.0.1:1936 server Local 127.0.0.1:1936 check
frontend dashboard frontend dashboard
bind *:11936 bind *:11936
@ -49,7 +49,7 @@ frontend dashboard
backend srv_dashboard backend srv_dashboard
mode http mode http
server Local 127.0.0.1:9190 server Local 127.0.0.1:9190 check
frontend http_in_443 frontend http_in_443
bind *:443 ssl crt /etc/easyhaproxy/certs/certbot/ alpn h2,http/1.1 crt /etc/easyhaproxy/certs/haproxy/ alpn h2,http/1.1 bind *:443 ssl crt /etc/easyhaproxy/certs/certbot/ alpn h2,http/1.1 crt /etc/easyhaproxy/certs/haproxy/ alpn h2,http/1.1

View file

@ -43,7 +43,7 @@ frontend stats
backend srv_stats backend srv_stats
mode http mode http
server Local 127.0.0.1:1936 server Local 127.0.0.1:1936 check
frontend dashboard frontend dashboard
bind *:11936 bind *:11936
@ -57,7 +57,7 @@ frontend dashboard
backend srv_dashboard backend srv_dashboard
mode http mode http
server Local 127.0.0.1:9190 server Local 127.0.0.1:9190 check
frontend http_in_80 frontend http_in_80
bind *:80 bind *:80

View file

@ -43,7 +43,7 @@ frontend stats
backend srv_stats backend srv_stats
mode http mode http
server Local 127.0.0.1:1937 server Local 127.0.0.1:1937 check
frontend dashboard frontend dashboard
bind *:11937 bind *:11937
@ -57,7 +57,7 @@ frontend dashboard
backend srv_dashboard backend srv_dashboard
mode http mode http
server Local 127.0.0.1:9190 server Local 127.0.0.1:9190 check
frontend http_in_19901 frontend http_in_19901
bind *:19901 bind *:19901

View file

@ -33,7 +33,7 @@ frontend stats
backend srv_stats backend srv_stats
mode http mode http
server Local 127.0.0.1:1936 server Local 127.0.0.1:1936 check
frontend dashboard frontend dashboard
bind *:11936 bind *:11936
@ -47,7 +47,7 @@ frontend dashboard
backend srv_dashboard backend srv_dashboard
mode http mode http
server Local 127.0.0.1:9190 server Local 127.0.0.1:9190 check
backend certbot_backend backend certbot_backend
mode http mode http

View file

@ -50,7 +50,7 @@ frontend stats
backend srv_stats backend srv_stats
mode http mode http
server Local 127.0.0.1:1936 server Local 127.0.0.1:1936 check
frontend dashboard frontend dashboard
bind *:11936 bind *:11936
@ -64,7 +64,7 @@ frontend dashboard
backend srv_dashboard backend srv_dashboard
mode http mode http
server Local 127.0.0.1:9190 server Local 127.0.0.1:9190 check
frontend http_in_80 frontend http_in_80
bind *:80 bind *:80

View file

@ -43,7 +43,7 @@ frontend stats
backend srv_stats backend srv_stats
mode http mode http
server Local 127.0.0.1:1936 server Local 127.0.0.1:1936 check
frontend dashboard frontend dashboard
bind *:11936 bind *:11936
@ -57,7 +57,7 @@ frontend dashboard
backend srv_dashboard backend srv_dashboard
mode http mode http
server Local 127.0.0.1:9190 server Local 127.0.0.1:9190 check
frontend http_in_443 frontend http_in_443
bind *:443 ssl crt /etc/easyhaproxy/certs/certbot/ alpn h2,http/1.1 crt /etc/easyhaproxy/certs/haproxy/ alpn h2,http/1.1 bind *:443 ssl crt /etc/easyhaproxy/certs/certbot/ alpn h2,http/1.1 crt /etc/easyhaproxy/certs/haproxy/ alpn h2,http/1.1