nginx config for a RESTful API