@Bathinda can you try to identify what causes it all to fail?
Feom what I see there is an error 500.
Have you tried to find any errors in the logs of the outer nginx?
You could also consider exploring the inner nginx logs to see if it is causing any errors.