Refactoring for nginx::upstreams; fixing public location