mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-01-03 22:36:22 +01:00
Double MultipartBodyLengthLimit for Backup Restore to 256MB
This commit is contained in:
parent
59b7435820
commit
83344fb6f4
1 changed files with 6 additions and 0 deletions
|
|
@ -12,6 +12,7 @@
|
|||
using FluentMigrator.Runner.Processors.Postgres;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.AspNetCore.Http.Features;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
|
@ -154,6 +155,11 @@ public static IHostBuilder CreateConsoleHostBuilder(string[] args, StartupContex
|
|||
.ConfigureServices(services =>
|
||||
{
|
||||
services.Configure<PostgresOptions>(config.GetSection("Prowlarr:Postgres"));
|
||||
services.Configure<FormOptions>(x =>
|
||||
{
|
||||
//Double the default multipart body length from 128 MB to 256 MB
|
||||
x.MultipartBodyLengthLimit = 268435456;
|
||||
});
|
||||
})
|
||||
.ConfigureWebHost(builder =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue