Had a bit of a closer look at how to make this all work (not a hugely demanded feature by our users so not a lot of effort really went into it in the first place) and found that I've had quite a bit of success just setting a header to tell nginx not to buffer
responses specifically for the nomad instance it's reverse proxying by setting the following in the nomad config:
HCL:
http_api_response_headers {
X-Accel-Buffering = "no"
}
Json:
"http_api_response_headers": [
{
"X-Accel-Buffering": "no"
}
]
Which is reasonably pleasing as a tiny value add for not much cost. Thanks Michael for the pointer 🙂.
Thanks,
Henry