allow controlling nginx location via attribute

I am not sure what I did wrong but with the default config I keep getting CORS errors in Chrome when accessing Kibana. I generally run the proxy on http://ip/es instead of http://ip:8080/. This change will allow me to do this via the config.