-
-
Save anonymous/08eae701569b753c4c96 to your computer and use it in GitHub Desktop.
Haproxy
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 | |
log 127.0.0.1 local0 | |
maxconn 256000 | |
user haproxy | |
group haproxy | |
daemon | |
defaults | |
log global | |
option redispatch | |
retries 3 | |
timeout http-request 10s | |
timeout queue 1m | |
timeout connect 10s | |
timeout client 1m | |
timeout server 1m | |
timeout check 10s | |
listen keystone | |
bind *:5000 | |
balance source | |
option tcpka | |
option httpchk | |
option tcplog | |
server proxy-2 x.x.x.x:5000 check inter 2000 rise 2 fall 5 | |
server proxy-3 x.x.x.x:5000 check inter 2000 rise 2 fall 5 | |
listen keystone-admin | |
bind *:35357 | |
balance source | |
option tcpka | |
option httpchk | |
option tcplog | |
server proxy-2 x.x.x.x:35357 check inter 2000 rise 2 fall 5 | |
server proxy-3 x.x.x.x:35357 check inter 2000 rise 2 fall 5 | |
frontend https_frontend | |
bind *:8443 | |
mode tcp | |
default_backend swift_https | |
backend swift_https | |
mode tcp | |
balance roundrobin | |
stick-table type binary len 32 size 30k expire 30m | |
acl clienthello req_ssl_hello_type 1 | |
acl serverhello rep_ssl_hello_type 2 | |
tcp-request inspect-delay 5s | |
tcp-request content accept if clienthello | |
tcp-response content accept if serverhello | |
stick on payload_lv(43,1) if clienthello | |
stick store-response payload_lv(43,1) if serverhello | |
server proxy-2 x.x.x.x:8443 | |
server proxy-3 x.x.x.x:8443 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment