Container app on azure configuration
See original GitHub issueJust spent a few hours trying to get this working. I had previously had something working ok in a windows web app, but when switching to a container web app under Linux, it kept on redirecting back to the insecure http://xxxxxx.azurewebsites.net/signin-oidc
rather than the secure https://xxxxx.azurewebsites.net/signin-oidc
A lot of reading and trial and error and this appears to work.
services.Configure<ForwardedHeadersOptions>(options =>
{
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
options.RequireHeaderSymmetry = false;
options.KnownNetworks.Clear();
options.KnownProxies.Clear();
});
And at the top of Configure
app.UseForwardedHeaders();
Is this expected behaviour? Is it documented somewhere, if so I couldn’t find it.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Use Azure App Configuration in Azure Container Apps
Connect Azure App Configuration to the container app · In the Basics tab: select App Configuration for Service type · In the Authentication...
Read more >Deploy your first container app using the Azure portal
Deploy the container app · Select the Review and create button at the bottom of the page. Next, the settings in the Container...
Read more >Configure a custom container - Azure App Service
Learn how to configure a custom container in Azure App Service. This article shows the most common configuration tasks.
Read more >Containers in Azure Container Apps
Learn how containers are managed and configured in Azure Container Apps. ... Azure Container Apps manages the details of Kubernetes and ...
Read more >Manage secrets in Azure Container Apps
Go to your container app in the Azure portal. · Under the Settings section, select Secrets. · Select Add. · In the Add...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We cover this, but it probably isn’t cross-linked well. @nrandell, it looks like you didn’t come across our topic on this in your search for a solution … https://docs.microsoft.com/aspnet/core/host-and-deploy/proxy-load-balancer
@nrandell, what topic(s) were you using when you were working on your implementation of the container app under Linux? The simplest solution is perhaps to link that topic directly to ours.
I’ve taken note that our own Docker topics don’t link our new proxy/load balancer topic, so I’ll take care of that right now.
Closing as the documentation was moved to ASP.NET