Last active
September 1, 2023 23:39
-
-
Save lazywithclass/d255bb4d2086b07be178 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global | |
log 127.0.0.1 local0 | |
user root | |
group root | |
daemon | |
defaults | |
log global | |
mode http | |
option httplog | |
option dontlognull | |
retries 3 | |
option redispatch | |
timeout connect 5000 | |
timeout client 120000 | |
timeout server 90000 | |
frontend www-http | |
bind 0.0.0.0:9000 | |
option http-buffer-request | |
declare capture request len 400000 | |
http-request capture req.body id 0 | |
log-format {"%[capture.req.hdr(0)]"} | |
default_backend node-servers | |
backend node-servers | |
server node google.com:80 maxconn 20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this works for me on haproxy 2.4, thanks