void-packages/srcpkgs/haproxy/files/haproxy.cfg
Zach Dykstra 02a53fb6e3 haproxy: enable hitless reloads
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.
2021-08-10 11:20:39 -03:00

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