How to disable buffering on the app platform?

Posted October 22, 2021 91 views
NginxDigitalOcean App Platform

I’ve deployed an app on the app platform that makes use of server-sent events. Buffering (probably nginx proxy_buffers) causes a large delay. Any way to disable buffering to get rid of the delay?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hey there!

If you are using nginx for your webserver in your App Platform build you should be able to add your own custom nginx.conf file and modify those settings. However the recommended route for this would be to setup your app as a Dockerfile which would allow you to customize your own nginx settings.

Docker Dev Guide

Hope it helps!