- Updated HAProxy configuration template to set all standard proxy headers for HTTP requests. - Added support for a unique request ID via `unique-id-format` and `unique-id-header` directives. - Implemented E2E tests for header validation, request correlation, and configuration correctness. - Enhanced documentation to explain usage and examples of proxy headers. - Updated CI workflows to include E2E tests for proxy headers.
45 lines
1.7 KiB
Text
45 lines
1.7 KiB
Text
global
|
|
log stdout format raw local0 info
|
|
maxconn 2000
|
|
tune.ssl.default-dh-param 2048
|
|
|
|
# intermediate configuration
|
|
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:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
|
|
ssl-default-bind-ciphersuites TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256
|
|
ssl-default-bind-options prefer-client-ciphers no-sslv3 no-tlsv10 no-tlsv11 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:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
|
|
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-tlsv10 no-tlsv11 no-tls-tickets
|
|
|
|
ssl-dh-param-file /etc/easyhaproxy/haproxy/dhparam
|
|
|
|
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 tcp_in_31339
|
|
bind *:31339
|
|
mode tcp
|
|
option tcplog
|
|
log global
|
|
default_backend srv_agent_quantum_local_31339
|
|
|
|
backend srv_agent_quantum_local_31339
|
|
balance roundrobin
|
|
mode tcp
|
|
option tcp-check
|
|
tcp-check connect ssl
|
|
server srv-0 test_agent:9001 check weight 1 verify none
|
|
|
|
backend certbot_backend
|
|
mode http
|
|
server certbot 127.0.0.1:2080
|