stream {标签:HTTP,socket,weight,0.1,TCP,server,nginx,proxy,timeout From: https://blog.51cto.com/u_14650780/5998673
upstream socket_proxy {
hash $remote_addr consistent; server 127.0.0.1:80 weight=5 max_fails=3 fail_timeout=120s;
}
server {
listen 8069;
proxy_connect_timeout 2s;
proxy_timeout 5s;
proxy_pass socket_proxy;
}
}