Extend LB config to add other ports
parent
40242a9b92
commit
2add1032b4
|
@ -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 {}
|
Loading…
Reference in New Issue