aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com/haproxy/haproxy.cfg
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--terminaldweller.com/haproxy/haproxy.cfg13
1 files changed, 13 insertions, 0 deletions
diff --git a/terminaldweller.com/haproxy/haproxy.cfg b/terminaldweller.com/haproxy/haproxy.cfg
index ddc8b82..b21026d 100644
--- a/terminaldweller.com/haproxy/haproxy.cfg
+++ b/terminaldweller.com/haproxy/haproxy.cfg
@@ -123,6 +123,15 @@ frontend jabbber5222
mode http
acl chat-host hdr_sub(host) -i chat.terminaldweller.com
use_backend chat-backend-c2s if chat-host
+frontend jabber5223
+ bind *:5223
+ timeout client 60s
+ mode tcp
+ tcp-request inspect-delay 5s
+ tcp-request content accept if { req.ssl_hello_type 1 }
+ tcp-request content reject
+ acl chat-host-s req.ssl_sni -i chat.terminaldweller.com
+ use_backend chat-auth-backend-s if chat-host-s
frontend jabber5280
bind *:5280
mode http
@@ -291,6 +300,10 @@ backend chat-backend-c2s
mode http
option forwardfor
server chat-host 130.185.121.80:5222
+backend chat-auth-backend-s
+ mode tcp
+ option ssl-hello-chk
+ server chat-host 130.185.121.80:5223
#backend chat-cert-backend
# mode http
# server chat-cert-server 130.185.121.80:8880