using Microsoft.AspNetCore; public class Program { public static void Main(string[] args) { CreateWebHostBuilder(args).Build().Run(); } public static IWebHostBuilder CreateWebHostBuilder(string[] args) => WebHost.CreateDefaultBuilder(args) .UseConfiguration(new ConfigurationBuilder().SetBasePath(Environment.CurrentDirectory) .AddJsonFile("appsettings.json").Build()) .ConfigureKestrel(options => { options.Limits.KeepAliveTimeout = TimeSpan.FromMinutes(10); options.Limits.MaxRequestBodySize = null; }) .UseStartup(); }