simplify endpoint URLs and split up nginx.conf for heroku