# L4 front-end for the PR #156 PROXY v2 e2e test.
#
# Two TCP frontends, both prepending a PROXY v2 header to the backend
# stream. HAProxy never sees the cleartext DNS — it only forwards bytes —
# and numa parses the PROXY header before the next layer (TLS for DoT,
# length-prefixed DNS for plain TCP).
global
log stdout format raw local0
maxconn 1024
defaults
log global
mode tcp
option tcplog
timeout connect 5s
timeout client 30s
timeout server 30s
frontend dot_in
bind *:853
default_backend numa_dot
backend numa_dot
server numa 172.28.0.10:853 send-proxy-v2 check
frontend dns_tcp_in
bind *:53
default_backend numa_tcp
backend numa_tcp
server numa 172.28.0.10:53 send-proxy-v2 check