02a53fb6e3
Switch HAProxy to a master/worker (-W) model, allowing for correct handling of HUP signals. To do listening FD handoff, a stats socket with 'expose-fd listeners' needs to be part of the configuration file.
15 lines
280 B
INI
15 lines
280 B
INI
global
|
|
chroot /var/lib/haproxy
|
|
user haproxy
|
|
group haproxy
|
|
stats socket /var/run/haproxy.sock mode 0600 level admin expose-fd listeners process 1/1
|
|
|
|
defaults
|
|
mode http
|
|
|
|
frontend proxy
|
|
bind *:80
|
|
default_backend servers
|
|
|
|
backend servers
|
|
server server1 127.0.0.1:8000
|