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:
parent
2d108070c4
commit
677ce81d40
@ -1,12 +1,7 @@
|
||||
global
|
||||
log stdout format raw daemon "${LOG_LEVEL}"
|
||||
|
||||
pidfile /run/haproxy.pid
|
||||
maxconn 4000
|
||||
|
||||
# Turn on stats unix socket
|
||||
server-state-file /var/lib/haproxy/server-state
|
||||
|
||||
defaults
|
||||
mode http
|
||||
log global
|
||||
@ -24,9 +19,6 @@ defaults
|
||||
timeout check 10s
|
||||
maxconn 3000
|
||||
|
||||
# Allow seamless reloads
|
||||
load-server-state-from-file global
|
||||
|
||||
# Use provided example error pages
|
||||
errorfile 400 /usr/local/etc/haproxy/errors/400.http
|
||||
errorfile 403 /usr/local/etc/haproxy/errors/403.http
|
||||
|
Loading…
Reference in New Issue
Block a user