HA rancher setup behind a proxy

Hello,

I have tried to setup HA behind haproxy, and everything is successful except the following. I am getting following error and stacks deployed across the network is showing as error

===
Error (Get http://localhost:8080/v2-beta/projects/1a204/services/1s37: net/http: request canceled (Client.Timeout exceeded while awaiting headers))

I had used no_proxy variable in systemd and /etc/environment to fix it, but no luck

Error from rancher server container

time=“2017-04-17T06:52:17Z” level=info msg="Downloading key from http://localhost:8081/v1/scripts/api.crt"
time=“2017-04-17T06:52:17Z” level=info msg="Starting websocket proxy. Listening on [:8080], Proxying to cattle API at [localhost:8081], Monitoring parent pid [7]."
time=“2017-04-17T06:52:17Z” level=info msg="Configured http API filter"
time=“2017-04-17T06:52:17Z” level=info msg="Configured authTokenValidator API filter"
time=“2017-04-17T06:52:17Z” level=info msg="Master config file: master.conf"
time=“2017-04-17T06:52:17Z” level=info msg="Master address: IPADDRESS:8080"
time=“2017-04-17T06:52:19Z” level=info msg="Webhook service listening on 8085"
time=“2017-04-17T06:52:27Z” level=info msg="Starting Catalog Service (port 8088, refresh interval 300 seconds)"
time=“2017-04-17T06:52:27Z” level=error msg="Failed to update existing repo cache: exit status 128"
time=“2017-04-17T06:52:28Z” level=error msg="Failed to update existing repo cache: exit status 128"
time=“2017-04-17T06:52:28Z” level=info msg=“Exiting proxy.” error="Failed to download certificate for 856660EF01335316933B: Get http://localhost:8081/v1/credentials?kind=agentApiKey&publicValue=856660EF01335316933B: net/http: request canceled (Client.Timeout exceeded while awaiting headers)"
time=“2017-04-17T06:52:28Z” level=fatal msg="Failed to configure cattle client: Get http://localhost:8080/v1: read tcp [::1]:45880->[::1]:8080: read: connection reset by peer"
time=“2017-04-17T06:52:28Z” level=error msg="Failed to update existing repo cache: exit status 128"
time=“2017-04-17T06:52:28Z” level=error msg="Failed to update existing repo cache: exit status 128"
time=“2017-04-17T06:52:28Z” level=error msg="Failed to update existing repo cache: exit status 128"
time=“2017-04-17T06:52:28Z” level=error msg="Failed to update existing repo cache: exit status 128"
time=“2017-04-17T06:52:29Z” level=info msg="Downloading key from http://localhost:8081/v1/scripts/api.crt"
time=“2017-04-17T06:52:29Z” level=info msg="Starting websocket proxy. Listening on [:8080], Proxying to cattle API at [localhost:8081], Monitoring parent pid [7]."
time=“2017-04-17T06:52:29Z” level=info msg="Configured http API filter"
time=“2017-04-17T06:52:29Z” level=info msg="Configured authTokenValidator API filter"
time=“2017-04-17T06:52:29Z” level=info msg="Master config file: master.conf"
time=“2017-04-17T06:52:29Z” level=info msg="Master address: IPADDRESS:8080"
time=“2017-04-17T06:52:29Z” level=info msg="Downloading certificate from http://localhost:8081/v1/credentials/1c1/certificate"
time=“2017-04-17T06:52:30Z” level=info msg="Starting Rancher Auth service"
time=“2017-04-17T06:52:31Z” level=info msg=“Listening on :8090”

Thanks