Applying Policy Enforcer Behind Proxy Causing Error

I have an quarkus api server of type confidential client in which routes are protected by policy enforcer. The policy are enforced correctly and works well.

But now i have a situation to put keycloak and quarkus application behind proxy. After that the when application starts the application generate an error that Connection Refused Error . I have checked that error is caused when applying policy enforcer to application.

Sample Application

I need to provide any extra configuration in adapter to connect keycloak behind proxy.

Please any one help me to solve this problem.

Thanks