I am trying to use an IF statement in the location context inside my nginx.conf to add a proxy_pass element if the application is started up as being in local mode