Nginx 502 Bad Gateway auth0 nextjs

I have a nextjs app that I want to move from vercel to convox.

Unfortunately, the auth0 login doesn’t work. I get “502 Bad Gateway”

Looking in nextjs-auth0 issues and other non-nextjs specfic problems, I think this is caused by large headers.

Using lens, I’ve connected to my cluster and set the nginx.ingress.kubernetes.io/proxy-buffer-size: "128k" annotation on my ingress which has resolved the issue for me.
I am not sure if this will persist if I upgrade the rack though.

Is there a recommended, permanent solution?

Other issues:

Hello Rhys,

I spoke with the dev team regarding this issue and they will be looking at it during the next planning session.

Unfortunately right now there is no permanent solution. We would suggest NOT updating the rack as terraform will override the changes.

Regards,

Nick
Support Engineer
Convox

1 Like