There is a Node API running on port 8080
How to configure nginx locations (proxy_pass), if there are such locations:
/accounts /events /providers /users

And each of them can be like this:
/events/get/:id

    1 answer 1

    You proxy on port 8080. For example:

     location ^~/accounts { proxy_pass http://127.0.0.1:8080; ... } 

    The same is true for other locations.