- 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.
54 lines
2.3 KiB
Text
54 lines
2.3 KiB
Text
global
|
|
log stdout format raw local0 info
|
|
maxconn 2000
|
|
ssl-default-bind-ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA
|
|
ssl-default-bind-ciphersuites TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256
|
|
ssl-default-bind-options no-sslv3 no-tls-tickets
|
|
|
|
ssl-default-server-ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA
|
|
ssl-default-server-ciphersuites TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256
|
|
ssl-default-server-options no-sslv3 no-tls-tickets
|
|
|
|
|
|
defaults
|
|
log global
|
|
unique-id-format %{+X}o\ %ci:%cp_%fi:%fp_%Ts_%rt:%pid
|
|
unique-id-header X-Edge-Request-ID
|
|
option httplog
|
|
|
|
timeout connect 3s
|
|
timeout client 10s
|
|
timeout server 10m
|
|
|
|
|
|
frontend stats
|
|
bind *:1936
|
|
mode http
|
|
http-request use-service prometheus-exporter if { path /metrics }
|
|
stats enable
|
|
stats hide-version
|
|
stats realm Haproxy\ Statistics
|
|
stats uri /
|
|
default_backend srv_stats
|
|
|
|
backend srv_stats
|
|
mode http
|
|
server Local 127.0.0.1:1936 check
|
|
|
|
frontend dashboard
|
|
bind *:11936
|
|
mode http
|
|
acl is_index path /
|
|
acl is_index path /index.html
|
|
acl is_dashboard path /dashboard.html
|
|
http-request set-path /dashboard.html if is_index
|
|
http-request return status 404 if !is_dashboard
|
|
default_backend srv_dashboard
|
|
|
|
backend srv_dashboard
|
|
mode http
|
|
server Local 127.0.0.1:9190 check
|
|
|
|
backend certbot_backend
|
|
mode http
|
|
server certbot 127.0.0.1:2080
|