Proxy whitelist, exclude domain

Hello!
My nginx is configured as proxy and I want to know how to exclude
specific
domain from proxy_pass.
Currently I’m using ‘if’, any other ideas?
config - http://p.ngx.cc/654d77baf333aeb2