I followed the steps here Using Prodigy with a ProxyPass and managed to get prodigy working behind an Nginx reverse proxy - prodvided that I proxy /get_questions etc. to the root /get_questions. However, I have several prodigy instances running behind the same reverse proxy, so I really do need to proxy requests to specific instances, i.e. /get_questions from instance_one needs to go to /instance_one/get_questions. That way each instance of prodigy will be interacting with its own API. Is it possible to configure the prodigy root to be /instance_one and not /? I looked into the documentation for the hug and fastapi middleware but found no good way to easily configure them.
For example, consider my domain name example.com and a prodigy instance hosted at example.com/instance_one. Then a request from instance_one to /get_questions will go to example.com/get_questions and not example.com/instance_one/get_questions.