How to bypass nginx proxy a list of IPS

I have an Nginx config with the redirect to holding pages:
location / {

if ($setholdingpage = ‘True’) {
rewrite (^.*$) /holding-page last;
}
proxy_pass $backend;
}

Also, I have a list…