I am looking to disable “proxy_buffering”, but only for certain paths like “/example”. What’s the path of least resistance for achieving this in Kong? I would like to avoid using a custom NGINX template if possible. I tried using KONG_NGINX_HTTP_INCLUDE, but it seems like that does not allow modifying the Kong proxy server block. Using “nginx_proxy_” seems promising, but it does not seem possible to add new location blocks.
You can’t enable or disable this for select paths. You can try to globally enable it using nginx_proxy_ but I’m not sure what the effects on Kong would be. @bungle or @datong.sun could elaborate more on this.
service.response_buffering would be perfect. We’re currently using the X-Accel-Buffering response header and that’s working great, but we want to try to keep this logic in Kong.
Would be great to if this is implemented, since there are services in my case which receives large files 5GB>20GB. Would be great if one had the option to disable it on service level instead of disabling it via globally in Nginx.