feat: 加大了最大请求体大小
parent
b800161895
commit
f21281d9f9
|
@ -8,6 +8,7 @@ Directory.CreateDirectory("./files");
|
|||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.WebHost.UseUrls("https://*:8081");
|
||||
builder.WebHost.UseKestrel((context, options) => {
|
||||
options.Limits.MaxRequestBodySize = 1073741824L;
|
||||
options.ConfigureEndpointDefaults(listenOptions => {
|
||||
listenOptions.Protocols = HttpProtocols.Http1AndHttp2AndHttp3;
|
||||
listenOptions.UseHttps(builder.Configuration.GetSection(SslOptions.SectionName).Get<SslOptions>()!
|
||||
|
|
Loading…
Reference in New Issue