upstream ruoyi {
server 192.168.31.101:8080 weight=5;
server 192.168.31.102:8080 weight=3;
}
server {
location /prod-api/ {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://ruoyi/;
}