1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-18 14:47:03 +00:00

test: Update haproxy test config

The haproxy test config includes an obsolete "debug" entry, and is
missing some timeouts which, while harmless in this context, cause a
warning that can be confusing.

This patch fixes the debug entry by running haproxy -d as recommended,
and adds the essential timeouts to avoid the warning.
This commit is contained in:
Alberto Bertogli
2020-11-22 09:32:26 +00:00
parent a9d7e36d29
commit 8769e01f23
2 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
global
debug
listen smtp-in
mode tcp
bind *:1025
server srv1 localhost:2025 send-proxy
timeout connect 10s
timeout client 10s
timeout server 10s

View File

@@ -19,7 +19,7 @@ timeout 2m
# Launch haproxy in the background, checking config first to fail fast in that
# case.
haproxy -f haproxy.cfg -c
haproxy -f haproxy.cfg > .logs/haproxy.log 2>&1 &
haproxy -f haproxy.cfg -d > .logs/haproxy.log 2>&1 &
generate_certs_for testserver
add_user user@testserver secretpassword