Skip to content

Instantly share code, notes, and snippets.

@ralvares
Created December 6, 2023 12:40
Show Gist options
  • Save ralvares/6f885705abd7e092748af21c144e745a to your computer and use it in GitHub Desktop.
Save ralvares/6f885705abd7e092748af21c144e745a to your computer and use it in GitHub Desktop.
haproxy example
# haproxy.cfg
defaults
mode http
log global
option httplog
option dontlognull
option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 300s
timeout server 300s
timeout http-keep-alive 10s
timeout check 10s
maxconn 20000
frontend keycloak-frontend
bind *:8443
default_backend keycloak-vm
mode tcp
option tcplog
backend keycloak-vm
balance source
mode tcp
server bootstrap 192.168.122.162:8443 check
#
# END OF FILE
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment