YARP behind a lan webproxy #1662
-
I have used YARP for a while but now I have a new situation where the application must pass a lan proxy to reach internet. Whithout any changes the yarp-app returns Bad Gatway (502) I have tried to set the defaultProxy setting in web.config and it worked for a regualar ashx-page, but did not change the function in the yarp-app, it just returns Bad Gatway (502). I found some information about WebProxy here in the soure code but no example that I understund and no example/information if it could be set in the appsetting-file. Any help would be appreciated. Best ragards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Yes, the The proxy configuration is defined by {
"Clusters": {
"cluster1": {
"HttpClient": {
"WebProxy": {
"Address": "http://my-proxy"
}
}
}
}
} |
Beta Was this translation helpful? Give feedback.
-
I just typed wrong in the appsetting-file☹
But improved documentation would be great!
Thanks
Johan
Johan Hallgren
+46 (0)70 200 41 01
***@***.******@***.***>
GISZEAL AB
www.giszeal.se<http://www.giszeal.se/>
[logo-red]
From: Miha Zupan ***@***.***>
Sent: Thursday, 5 May 2022 14:53
To: microsoft/reverse-proxy ***@***.***>
Cc: Johan Hallgren ***@***.***>; Author ***@***.***>
Subject: Re: [microsoft/reverse-proxy] YARP behind a lan webproxy (Discussion #1662)
Hey, can you share what issues you were hitting here before making it work? Is there anything we can do to make it easier in the future?
—
Reply to this email directly, view it on GitHub<#1662 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AGTQEUCKUDVX4RY5456C3GDVIPAEBANCNFSM5T6T2SWQ>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
Yes, the
WebProxy
can be specified through the configuration file (we've just missed documenting it, sorry :)).The proxy configuration is defined by
WebProxyConfig
and goes under theHttpClient
config: