Replies: 2 comments
-
e.g. app.MapForwarder("/service1/{**catch-all}", "https+http://service1"); |
Beta Was this translation helpful? Give feedback.
0 replies
-
@davidfowl I don't think https is needed for my backend services as they are internal. Can I configure them as http(-only) in the AppHost? When I read Azure/azure-dev#3021 it looks like internal apps should allow http |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I trying to put Yarp in front of my backend APIs, using the
Microsoft.Extensions.ServiceDiscovery.Yarp
package. I have setup my BFF as following:Locally this works perfectly, but when I deploy to Azure (with
azd up
) the UI works, but all the requests to backend services yarp responds with 301. This is correct, as the backend services in Azure are created with ingress setting "Allow Insecure = false".One option is to use
azd config set alpha.infraSynth on
andazd infra synth
and update the yaml files to setallowInsecure=true
How can I tell my MapForwarder to use the https url if available?
Beta Was this translation helpful? Give feedback.
All reactions