diff options
author | terminaldweller <thabogre@gmail.com> | 2022-07-11 15:52:42 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-07-11 15:52:42 +0000 |
commit | 5e90dd671926af0bd30ad90c68a51f6a2fbd2490 (patch) | |
tree | 01bf38d628cc6e5d29882da5d7152c2259923f74 /terminaldweller.com/haproxy | |
parent | updates (diff) | |
download | scripts-5e90dd671926af0bd30ad90c68a51f6a2fbd2490.tar.gz scripts-5e90dd671926af0bd30ad90c68a51f6a2fbd2490.zip |
updates
Diffstat (limited to 'terminaldweller.com/haproxy')
-rw-r--r-- | terminaldweller.com/haproxy/haproxy.cfg | 13 |
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 |