upstream myserver {

server 127.0.0.1:5000 weight=3;
server 192.168.1.2:5000 weight=1;
server 192.168.1.3:5000 weight=1;
}

server {
listen 80;
#listen [::]:80;
server_name library.aixueshi.top;

#access_log /var/log/nginx/host.access.log main;

location / {
proxy_pass http://myserver/API/;
}

}