I tried creating a reverse proxy with a load balancer but it didn't work and I always get the no live upstreams error. For example:
upstream jadahaja {
server biznet.freemiumiptv.top;
server biznet2.freemiumiptv.top;
}
server {...}
and
location /
{
proxy_pass http://jadahaja;
proxy_set_header Host $host;
proxy_set_header Origin $http_origin;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header Accept "*/*";
proxy_set_header Connection "";
proxy_set_header User-Agent $http_user_agent;
proxy_http_version 1.1;
add_header X-Cache $upstream_cache_status;
proxy_set_header Accept-Encoding "";
sub_filter "http://biznet.freemiumiptv.top/" "http://ava2.freemiumiptv.top/";
sub_filter "http://biznet2.freemiumiptv.top/" "http://ava2.freemiumiptv.top/";
sub_filter_once off;
}