As per this stack overflow answer, which has made the rounds before:
https://stackoverflow.com/a/13673298/1334324
I'd add the following to your location block:
proxy_set_header Connection '';
proxy_http_version 1.1;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
This should resolve any issues around connecting to Urbit's SSE endpoints.
I personally also recommend adding this line:
proxy_set_header Forwarded for=$remote_addr;
because eyre respects the Forwarded header now, letting applications dispatch off of an actual IP address, rather than 127.0.0.1.
(This doesn't really matter for the apps that currently ship with arvo by default, but it's future-proof and seems like good behavior for proxy servers in general.)
—
~palfun-foslup
https://urbit.org