|
@@ -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;
|
|
@@ -53,6 +54,11 @@ internal static class StartupExtensions
|
|
|
//sqlsugar
|
|
|
.AddSqlSugar(configuration);
|
|
|
|
|
|
+
|
|
|
+ services.Configure<KestrelServerOptions>(d =>
|
|
|
+ {
|
|
|
+ d.Limits.MaxRequestBodySize = null;
|
|
|
+ });
|
|
|
////auth
|
|
|
//var ids4Options = configuration.GetSection(nameof(Ids4AuthorizeOptions)).Get<Ids4AuthorizeOptions>();
|
|
|
//services.RegisterIds4Authorize(ids4Options);
|