Skip to content

Instantly share code, notes, and snippets.

@melvincarvalho
Created April 25, 2016 13:11
Show Gist options
  • Select an option

  • Save melvincarvalho/70d1a0f2df209b902a67e206ebc6ea91 to your computer and use it in GitHub Desktop.

Select an option

Save melvincarvalho/70d1a0f2df209b902a67e206ebc6ea91 to your computer and use it in GitHub Desktop.
haproxy.cfg
global
log 127.0.0.1 local0
maxconn 4000
daemon
uid 99
gid 99
defaults
log global
mode http
option httplog
option dontlognull
timeout server 5s
timeout connect 5s
timeout client 5s
stats enable
stats refresh 10s
stats uri /stats
frontend ft_myapp
bind :443
mode tcp
default_backend bk_myapp
backend bk_myapp
mode tcp
server app1 127.0.0.1:8443 check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment