For a while I am getting more and more reports from users which are receiving an err 502 when trying to logon to a service. And things got worse when upgrading to v20.0.2
And in the logs there is the infamous “Nginx upstream sent too big header while reading response header from upstream” which I found here and all over the internet.
The proposed solution is always to increase the nginx buffer sizes in the http section of the nginx / keycloak settings, like so:
proxy_busy_buffers_size 512k;
proxy_buffers 4 512k;
proxy_buffer_size 256k;
Unfortunately, this doesn’t work for me, I increased the values step by step until nginx wouldn’t start any more, but the error won’t go away.
And what’s even more strange is that users with Chromium based browsers don’t have any issues whereas Firefox rather reliably is unable to connect.
My laymans conclusion is therefore that my error has got nothing to do with the buffers, it just happens to lead to the same error message?
Anyone got an idea as to how to tackle this?