blob: f27eeff432de116132d2df36121356af0938b8a4 [file] [log] [blame]
Willy Tarreau89da7cf2021-05-12 17:51:49 +02001# Basic config mapping a listening IP:port to another host's IP:port with
2# support for HTTP/1 and 2.
3
4global
5 strict-limits # refuse to start if insufficient FDs/memory
6 # add some process-wide tuning here if required
7
8 # A stats socket may be added to check live metrics if the load generators
9 # do not report them.
10 # stats socket /tmp/haproxy.sock level admin
11 # stats timeout 1h
12
13defaults
14 mode http
15 balance random # power-of-two-choices
16 timeout client 60s
17 timeout server 60s
18 timeout connect 1s
19
20listen p
21 # this is the address and port we'll listen to, the ones to aim the
22 # load generators at
23 bind :8000
24
25 # create a certificate and uncomment this for SSL
26 # bind :8443 ssl crt my-cert.pem alpn h2,http/1.1
27
28 # Put the server's IP address and port below
29 server s1 172.31.32.33:8000