Created
March 6, 2018 18:20
-
-
Save c3mb0/9ffa06a9fd8ada7c60593e583c3a4049 to your computer and use it in GitHub Desktop.
This file contains 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 | |
stats socket /var/run/haproxy.sock mode 600 level admin | |
resolvers consul | |
nameserver dns 127.0.0.1:8600 | |
defaults | |
mode http | |
timeout connect 5000ms | |
timeout client 50000ms | |
timeout server 50000ms | |
frontend http | |
bind *:80 | |
default_backend api | |
backend api | |
balance roundrobin | |
server-template api 100 _api.service.consul init-addr none resolvers consul check |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment