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.
I think the comments here are not neccessary, let's just keep it under the "Other Nginx proxy settings"