Last active
July 30, 2020 18:06
-
-
Save MatiasFernandez/cd0e3ce0adca0bd254595b12027056c5 to your computer and use it in GitHub Desktop.
Simple haproxy config example for local testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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