Cannot connect to server

A good thing to try is Grist Omnibus which has a reverse proxy built in.

Otherwise, you can check out these threads mentioning nginx (different issues but you might find hints about nginx specifics):