#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
stream {
upstream mv {
hash $remote_addr consistent;
server 101.35.21.184:3724 max_fails=3 fail_timeout=10s;
}
server {
listen 3724;
proxy_connect_timeout 20s;
proxy_timeout 5m;
proxy_pass mv;
}
upstream mv2 {
hash $remote_addr consistent;
server 101.35.21.184:8085 max_fails=3 fail_timeout=10s;
}
server {
listen 8085;
proxy_connect_timeout 20s;
proxy_timeout 5m;
proxy_pass mv2;
}
upstream mv3 {
hash $remote_addr consistent;
server 101.35.21.184:35128 max_fails=3 fail_timeout=10s;
}
server {
listen 35128;
proxy_connect_timeout 20s;
proxy_timeout 5m;
proxy_pass mv3;
}
upstream mv4 {
hash $remote_addr consistent;
server 101.35.21.184:30128 max_fails=3 fail_timeout=10s;
}
server {
listen 30128;
proxy_connect_timeout 20s;
proxy_timeout 5m;
proxy_pass mv4;
}
}