Skip to content

Instantly share code, notes, and snippets.

@laszlocph
Created August 16, 2023 19:22
Show Gist options
  • Save laszlocph/61642778fb61e3d7c1766d31e676c0f7 to your computer and use it in GitHub Desktop.
Save laszlocph/61642778fb61e3d7c1766d31e676c0f7 to your computer and use it in GitHub Desktop.
global
daemon
user haproxy
group haproxy
log /dev/log local0
maxconn 10000
pidfile /var/run/haproxy.pid
defaults
log global
mode tcp
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout check 10s
frontend nodeport80
bind :80
default_backend port32080
frontend nodeport443
bind :443
default_backend port32443
backend port32080
balance roundrobin
server web1 127.0.0.1:32080
backend port32443
balance roundrobin
server web1 127.0.0.1:32443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment