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