Skip to content

Instantly share code, notes, and snippets.

@MatiasFernandez
Last active July 30, 2020 18:06
Show Gist options
  • Save MatiasFernandez/cd0e3ce0adca0bd254595b12027056c5 to your computer and use it in GitHub Desktop.
Save MatiasFernandez/cd0e3ce0adca0bd254595b12027056c5 to your computer and use it in GitHub Desktop.
Simple haproxy config example for local testing
global
log stdout format raw local0
defaults
log global
mode http
timeout connect 4s
timeout client 30s
timeout server 10s
option redispatch
option forwardfor
option http-server-close
frontend test-frontend
mode http
bind *:80
option httplog
default_backend test-backend
frontend stats
bind *:8001
stats enable
stats uri /stats
stats refresh 10s
stats admin if LOCALHOST
backend test-backend
server testserver01 127.0.0.1:3001 check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment