commit 5eba8a279042208ff514c43c1934b50c86cf2d60 parent 8de0a5087833495b700c7ce4472df52c397c4cd5 Author: Christoph Lohmann <20h@r-36.net> Date: Mon, 14 Nov 2022 01:09:41 +0100 Add haproxy cfg example file. Diffstat:
A | haproxy/gopher-haproxy.cfg | | | 28 | ++++++++++++++++++++++++++++ |
1 file changed, 28 insertions(+), 0 deletions(-)
diff --git a/haproxy/gopher-haproxy.cfg b/haproxy/gopher-haproxy.cfg @@ -0,0 +1,28 @@ +# +# Minimal Gopher example. +# See: http://www.haproxy.org/download/1.8/doc/configuration.txt +# +# On gentoo copy to /etc/haproxy/haproxy-gopher.cfg and create +# the /etc/init.d/gopher-haproxy symlink from /etc/init.d/haproxy. +# + +global + user haproxy + group haproxy + +defaults + mode tcp + timeout connect 5000 + timeout client 50000 + timeout server 50000 + +frontend gopher + bind *:70 + mode tcp + default_backend backendnodes + +backend backendnodes + balance roundrobin + server node1 127.0.0.1:7070 send-proxy + server node2 127.0.0.1:7071 send-proxy +