Browse Source

加大请求限制

master
wxd 1 year ago
parent
commit
f12494ac75
  1. 4
      src/Shentun.WebPeis.HttpApi.Host/WebPeisHttpApiHostModule.cs

4
src/Shentun.WebPeis.HttpApi.Host/WebPeisHttpApiHostModule.cs

@ -150,12 +150,12 @@ public class WebPeisHttpApiHostModule : AbpModule
context.Services.Configure<IISServerOptions>(options => context.Services.Configure<IISServerOptions>(options =>
{ {
options.MaxRequestBodySize = 52428800; // 设置为null表示无限制,慎用
options.MaxRequestBodySize = 524288000; // 设置为null表示无限制,慎用
}); });
context.Services.Configure<KestrelServerOptions>(options => context.Services.Configure<KestrelServerOptions>(options =>
{ {
options.Limits.MaxRequestBodySize = 52428800; // 设置为null表示无限制,慎用
options.Limits.MaxRequestBodySize = 524288000; // 设置为null表示无限制,慎用
}); });
//Configure<JsonOptions>(x => //Configure<JsonOptions>(x =>

Loading…
Cancel
Save