Program.cs 673 B

123456789101112131415161718192021
  1. using Microsoft.AspNetCore;
  2. public class Program
  3. {
  4. public static void Main(string[] args)
  5. {
  6. CreateWebHostBuilder(args).Build().Run();
  7. }
  8. public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
  9. WebHost.CreateDefaultBuilder(args)
  10. .UseConfiguration(new ConfigurationBuilder().SetBasePath(Environment.CurrentDirectory)
  11. .AddJsonFile("appsettings.json").Build())
  12. .ConfigureKestrel(options =>
  13. {
  14. options.Limits.KeepAliveTimeout = TimeSpan.FromMinutes(10);
  15. options.Limits.MaxRequestBodySize = null;
  16. })
  17. .UseStartup<Startup>();
  18. }