#user  nobody;
worker_processes  1;


events {
    #worker_connections 1024 may not enough
    worker_connections  204800;
}


http {
    include       mime.types;
    default_type  application/octet-stream;


    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  1000;

    #gzip  on;
    upstream chain33url{
                ip_hash;
               server chain33:8802 weight=1;
               #server chain30:8802 weight=1;


        }
    server {
        listen       8803 http2;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            #proxy_pass http://yankerp;
            grpc_pass grpc://chain33url;
        }

        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }
}

