Got 502 Bad Gateway accessing url /me

Hello.

I tried to customize kobo docker to run behind a nginx proxy. I can access kobo form and login but got 502 Bad Gateway when the app try to access url /me. Can i have a clue where to start troubleshooting ?