Skip to content

Instantly share code, notes, and snippets.

@ei-grad
Last active April 3, 2018 08:29
Show Gist options
  • Save ei-grad/16d2fb1c867505818f1b to your computer and use it in GitHub Desktop.
Save ei-grad/16d2fb1c867505818f1b to your computer and use it in GitHub Desktop.
Trivial haproxy config for tcp port forwarding
listen l1
bind 0.0.0.0:80
mode tcp
timeout connect 4000
timeout client 180000
timeout server 180000
server srv1 192.168.1.1:80
global
user "nobody"
@chiihuang
Copy link

These are deprecated: clitimeout srvtimeout contimeout
Better to use these instead:

timeout connect  4000
timeout client   180000
timeout server   180000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment