1
0
mirror of https://github.com/Tecnativa/docker-socket-proxy synced 2025-01-02 20:00:55 +00:00

Cleanup haproxy.cfg

* /run/haproxy.pid is not used
* seamless reload is not functional and causes a warning at startup: "[WARNING] 213/153256 (1) : Can't open server state file '/var/lib/haproxy/server-state': No such file or directory"
This commit is contained in:
Andrés Maldonado 2023-08-02 19:25:29 +02:00
parent 2d108070c4
commit 677ce81d40

View File

@ -1,12 +1,7 @@
global global
log stdout format raw daemon "${LOG_LEVEL}" log stdout format raw daemon "${LOG_LEVEL}"
pidfile /run/haproxy.pid
maxconn 4000 maxconn 4000
# Turn on stats unix socket
server-state-file /var/lib/haproxy/server-state
defaults defaults
mode http mode http
log global log global
@ -24,9 +19,6 @@ defaults
timeout check 10s timeout check 10s
maxconn 3000 maxconn 3000
# Allow seamless reloads
load-server-state-from-file global
# Use provided example error pages # Use provided example error pages
errorfile 400 /usr/local/etc/haproxy/errors/400.http errorfile 400 /usr/local/etc/haproxy/errors/400.http
errorfile 403 /usr/local/etc/haproxy/errors/403.http errorfile 403 /usr/local/etc/haproxy/errors/403.http