proxy_buffering off;

socksrustBIZCLASS

a year ago

I need to set nginx config on NIX build.

0 Replies

a year ago

what kind of app are you deploying


socksrustBIZCLASS

a year ago

nextjs app


a year ago

then nginx is not involved


a year ago

please tell me the issues you are running into


socksrustBIZCLASS

a year ago

I need an NGINX proxy


a year ago

may I ask why? what issues are you running into


socksrustBIZCLASS

a year ago

sure


socksrustBIZCLASS

a year ago


socksrustBIZCLASS

a year ago

It says on the nextjs docs:

The Next.js App Router supports streaming responses when self-hosting. If you are using Nginx or a similar proxy, you will need to configure it to disable buffering to enable streaming.

For example, you can disable buffering in Nginx by setting X-Accel-Buffering to no:


a year ago

okay but nginx isn't involved in anyway when deploying a next app, and you can't configure anything about railways proxy


a year ago

furthermore, railway's proxy does not buffer anyway


a year ago

this is not the solution you are looking for


socksrustBIZCLASS

a year ago

trust me bro


socksrustBIZCLASS

a year ago

I k now


socksrustBIZCLASS

a year ago

but its the only one that works


a year ago

railway's proxy does not buffer


a year ago

railway also doesn't use nginx, and neither does your deployment


socksrustBIZCLASS

a year ago

I'm aware


socksrustBIZCLASS

a year ago

ok thanks


a year ago

please look for other solutions to the issue