From 5e90dd671926af0bd30ad90c68a51f6a2fbd2490 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Mon, 11 Jul 2022 20:22:42 +0430 Subject: updates --- terminaldweller.com/haproxy/haproxy.cfg | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'terminaldweller.com/haproxy') 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 -- cgit v1.2.3