question

ClaesErikhans-9173 avatar image
0 Votes"
ClaesErikhans-9173 asked ·

Web app for containers not working with nginx and AD B2C

Hi!

We have a multicontainer app running on a web app for containers(linux) and are running in to all sorts of issues we cant solve.

The app consists of three docker containers:

  • Blazor fronend

  • .net core webapi

  • Nginx as reverse proxy


Update 1

I removed some things i found is not related to the problem which seems to be the app service not mapping to port 443 inside the container but
instead is using port 80 which does not exist in the nginx config.

This article: https://docs.microsoft.com/en-us/azure/app-service/containers/app-service-linux-faq#custom-containers is from 2018 so i dont know if it's relevant but
it states that

Only one container can be open for access
Only port 80 and 8080 is accessible (exposed ports)

in which case it's not possible to use nginx with ssl on a web app for containers. But according to some other posts it should be possible with
the websites_port and port app settings..

Can someone please clarify if this is the case?


I set it up with ACI instead but using the web app would be ideal.


I have tried setting
WEBSITES_PORT to 443 and just using the nginx sever block for ssl

WEBSITES_CONTAINER_START_TIME_LIMIT to a higer value to make sure it's not an issue with the app starting but according to other questions iv'e looked into
it's because as i said above, azure cant get a reply from the container so it wont start because of that.

Can someone help me with what i am missing here? Can this be done or do we need another approach?

azure-webappsazure-ad-b2c
10 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ClaesErikhans-9173 avatar image
0 Votes"
ClaesErikhans-9173 answered ·

I got in contact with support and this is not possible when using compose

10 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.