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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user