增加在Azure上运行的Dockerized ASP.NET Core网站的最大上传大小限制? [英] Increasing the maximum upload size limit for a Dockerized ASP.NET Core site running on Azure?

查看:110
本文介绍了增加在Azure上运行的Dockerized ASP.NET Core网站的最大上传大小限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是应用程序的体系结构:

Here is the architecture of the application:

  • 用ASP.NET Core编写的Web API.
  • Dockerfile使用microsoft/dotnet:2.1-sdk构建Web应用程序,并使用microsoft/dotnet:aspnetcore-rumtime执行API.该应用程序已编译并放入/app.
  • 为启动API而执行的命令为:ENTRYPOINT ["dotnet", "/app/WebAPI.dll"]
  • 此API已部署到Azure容器注册表(Docker注册表).
  • 使用Azure应用服务托管API. App Service已配置为从ACR中提取给定的容器.
  • API完全按预期运行.
  • Web API written in ASP.NET Core.
  • Dockerfile builds the Web application using microsoft/dotnet:2.1-sdk and executes the API using microsoft/dotnet:aspnetcore-rumtime. The app is compiled and placed into /app.
  • The command executed to start the API is: ENTRYPOINT ["dotnet", "/app/WebAPI.dll"]
  • This API is deployed to an Azure Container Registry (Docker registry).
  • An Azure App Service is used to host the API. The App Service is configured to pull the given container from the ACR.
  • The API runs exactly as expected.

问题在于,我们需要接受大于IIS和Kestrel所规定的28.6MB限制的帖子正文大小.我们已经在此URL上尝试了这种方法,但没有成功:

The problem is that we need to accept post body sizes larger than the 28.6MB limit imposed by IIS and Kestrel. We have tried the approaches at this URL with no success: https://www.talkingdotnet.com/how-to-increase-file-upload-size-asp-net-core/

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆