How to configure IIS settings for ASP.NET IIS Container?

  asp.net, c#, docker, iis

I am converting an ASP.NET API that currently runs on a windows server running IIS 8, to run inside of a docker container using the following IIS image:
mcr.microsoft.com/dotnet/framework/aspnet:4.7.1

I have the API working correctly however, some calls can take over a minute to send a response. The current IIS setup has a connection timeout of 120s so these long calls complete fine. However, When the same call is made against the docker containers the client disconnects after ~60s and NGINX serves an HTTP 499 Error.

I would like to set the connection timeout to match the current IIS setup (120s) but since the IIS is containerized, I am not sure how to make these changes.

How can you configure IIS settings for a docker container?

Source: Docker Questions

LEAVE A COMMENT