nginx version: nginx/1.9.4
#set stream proxystream { upstream push{ #hash $remote_addr consistent; server gateway.sandbox.push.apple.com:2195 weight=5 max_fails=3 fail_timeout=30s; server gateway.push.apple.com:2195 weight=5 max_fails=3 fail_timeout=30s; } upstream feedback{ #hash $remote_addr consistent; server feedback.push.apple.com:2196 weight=5 max_fails=3 fail_timeout=30s; server feedback.sandbox.push.apple.com:2196 weight=5 max_fails=3 fail_timeout=30s; } server { listen 2195; #ssl; proxy_pass push; #so_keepalive on; #tcp_nodelay on; #ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #ssl_ciphers AES128-SHA:AES256-SHA:RC4-SHA:DES-CBC3-SHA:RC4-MD5; #ssl_session_cache shared:SSL:10m; #ssl_session_timeout 10m; } server { listen 2196; proxy_pass feedback; #so_keepalive on; #tcp_nodelay on; }}