Last active
April 11, 2018 17:04
-
-
Save ppmathis/4e60ae91b5cc84a50f93b7581a890ba6 to your computer and use it in GitHub Desktop.
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
defaults d-xmpp | |
log global | |
mode tcp | |
option redispatch | |
option tcplog | |
option tcpka | |
option clitcpka | |
option srvtcpka | |
timeout connect 5s | |
timeout client 24h | |
timeout server 60m | |
frontend f-xmpp | |
bind 1.2.3.4:5000,2001::1:5000 | |
bind 1.2.3.4:5222,2001::1:5222 | |
use_backend b-xmpp-c2s if { dst_port eq 5222 } | |
use_backend b-xmpp-s2s if { dst_port eq 5269 } | |
backend b-xmpp-c2s | |
balance leastconn | |
option independent-streams | |
server v4:xmpp1.example.com 1.1.1.1:5222 check send-proxy-v2 on-marked-up shutdown-backup-sessions | |
server v6:xmpp1.example.com 2a06::1:5222 check send-proxy-v2 on-marked-up shutdown-backup-sessions | |
server v4:xmpp2.example.com 2.2.2.2:5222 check send-proxy-v2 backup | |
server v6:xmpp2.example.com 2a06::2:5222 check send-proxy-v2 backup | |
backend b-xmpp-s2s | |
balance leastconn | |
option independent-streams | |
server v4:xmpp1.example.com 1.1.1.1:5269 check send-proxy-v2 on-marked-up shutdown-backup-sessions | |
server v6:xmpp1.example.com 2a06::1:5269 check send-proxy-v2 on-marked-up shutdown-backup-sessions | |
server v4:xmpp2.example.com 2.2.2.2:5269 check send-proxy-v2 backup | |
server v6:xmpp2.example.com 2a06::2:5269 check send-proxy-v2 backup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment