Files: increase limits
This commit is contained in:
parent
a6b55a7496
commit
abaf381a09
@ -24,7 +24,7 @@ namespace ASC.Files
|
|||||||
await host.RunAsync();
|
await host.RunAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
||||||
Host.CreateDefaultBuilder(args)
|
Host.CreateDefaultBuilder(args)
|
||||||
.UseSystemd()
|
.UseSystemd()
|
||||||
.UseWindowsService()
|
.UseWindowsService()
|
||||||
@ -35,6 +35,11 @@ namespace ASC.Files
|
|||||||
|
|
||||||
builder.ConfigureKestrel((hostingContext, serverOptions) =>
|
builder.ConfigureKestrel((hostingContext, serverOptions) =>
|
||||||
{
|
{
|
||||||
|
serverOptions.Limits.MaxRequestBodySize = 100 * 1024 * 1024;
|
||||||
|
serverOptions.Limits.MaxRequestBufferSize = 100 * 1024 * 1024;
|
||||||
|
serverOptions.Limits.MinRequestBodyDataRate = null;
|
||||||
|
serverOptions.Limits.MinResponseDataRate = null;
|
||||||
|
|
||||||
var kestrelConfig = hostingContext.Configuration.GetSection("Kestrel");
|
var kestrelConfig = hostingContext.Configuration.GetSection("Kestrel");
|
||||||
|
|
||||||
if (!kestrelConfig.Exists()) return;
|
if (!kestrelConfig.Exists()) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user