diff --git a/nginx/clustered/nginx.conf b/nginx/clustered/nginx.conf index 1170fb2..b679d71 100644 --- a/nginx/clustered/nginx.conf +++ b/nginx/clustered/nginx.conf @@ -13,16 +13,29 @@ stream { proxy_pass xmpp; } - #upstream bosh { - # server xmpp1:7071; - # server xmpp2:7072; - #} - #server { - # listen 57070; - # proxy_connect_timeout 10s; - # proxy_timeout 30s; - # proxy_pass bosh; - #} + upstream bosh { + server 172.60.0.10:7070; + server 172.60.0.20:7070; + } + server { + listen 57070; + tcp_nodelay on; + proxy_connect_timeout 10s; + proxy_timeout 30s; + proxy_pass bosh; + } + + upstream boshs { + server 172.60.0.10:7443; + server 172.60.0.20:7443; + } + server { + listen 57443; + tcp_nodelay on; + proxy_connect_timeout 10s; + proxy_timeout 30s; + proxy_pass boshs; + } } events {} \ No newline at end of file