|
@@ -1,5 +1,6 @@
|
|
|
using FileStorage.Repository.SqlSugar.Extensions;
|
|
|
using Microsoft.AspNetCore.Authentication;
|
|
|
+using Microsoft.AspNetCore.Server.Kestrel.Core;
|
|
|
using Microsoft.Extensions.FileProviders;
|
|
|
using Serilog;
|
|
|
using XF.Domain.Dependency;
|
|
@@ -43,6 +44,12 @@ internal static class StartupExtensions
|
|
|
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
|
|
services.AddEndpointsApiExplorer();
|
|
|
|
|
|
+ //取消请求体大小限制
|
|
|
+ services.Configure<KestrelServerOptions>(d =>
|
|
|
+ {
|
|
|
+ d.Limits.MaxRequestBodySize = null;
|
|
|
+ });
|
|
|
+
|
|
|
services
|
|
|
//swagger
|
|
|
.RegisterSwagger()
|