Compare commits
No commits in common. "eb3f2c6156cc5dffacd99638a4a920dd1d0b2e83" and "f2f91428faee8cee4b8051158b0e4005bf564be3" have entirely different histories.
eb3f2c6156
...
f2f91428fa
@ -1 +1 @@
|
||||
Subproject commit 19dd525f90a6ebd080f789792960fcce7b0577ff
|
||||
Subproject commit db97c7ab0cce12c3939b3808e198dc88f873cbc9
|
||||
@ -8,7 +8,7 @@ public class Program
|
||||
public static async Task<int> Main(string[] args)
|
||||
{
|
||||
try
|
||||
{
|
||||
{
|
||||
//string text = Convert.ToBase64String(Encoding.UTF8.GetBytes("admin:admin123"));
|
||||
Log.Information("JiShe.IoT.HttpApi.Host.");
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
@ -33,12 +33,7 @@ public class Program
|
||||
});
|
||||
|
||||
await builder.AddApplicationAsync<JiShe.IoT.IoTHttpApiHostModule>();
|
||||
builder.WebHost.ConfigureKestrel((context, options) =>
|
||||
{
|
||||
options.Limits.MaxRequestBodySize = 10 * 1024 * 1024; // 10MB
|
||||
options.Limits.KeepAliveTimeout = TimeSpan.FromMinutes(2);
|
||||
options.Limits.RequestHeadersTimeout = TimeSpan.FromMinutes(1);
|
||||
});
|
||||
builder.WebHost.ConfigureKestrel((context, options) => { options.Limits.MaxRequestBodySize = 1024 * 50; });
|
||||
builder.WebHost.UseUrls($"http://+:10500");
|
||||
var app = builder.Build();
|
||||
await app.InitializeApplicationAsync();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user