Unable to setup Odk Central over a reverse proxy

Hi @kshitijbhatt,

Welcome to ODK Forum, if you have a moment, feel free to introduce yourself here.

Can you please share more details about your configuration like which proxy server are you using, its configuration file, Central configuration file i.e. .env (without any credentials). Do you know which piece of the system is throwing 502 error, it could be the proxy server or Central's nginx or Central backend?

Here are the few useful commands:

# To see the nginx logs:
$ docker compose logs -f nginx

# To see Central backend service logs:
$ docker compose logs -f service

# Reload Central nginx service, if you see any errors then it means the something is wrong in nginx configuration:
$ docker compose exec -it nginx service nginx reload

Here is an excellent demo of how to run Central behind a reverse proxy, it may provide you some hints and directions to solve your problem: