question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Container app on azure configuration

See original GitHub issue

Just 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:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
guardrexcommented, Jun 2, 2018

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

I couldn’t find it

@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.

0reactions
jmprieurcommented, Aug 28, 2018

Closing as the documentation was moved to ASP.NET

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found