🐛 Trying to fix chat notification

This commit is contained in:
2025-05-30 21:42:00 +08:00
parent 0bbd322c2e
commit b7960e3060
2 changed files with 12 additions and 4 deletions

View File

@ -44,7 +44,7 @@ var builder = WebApplication.CreateBuilder(args);
builder.Host.UseContentRoot(Directory.GetCurrentDirectory());
builder.WebHost.ConfigureKestrel(options =>
{
options.Limits.MaxRequestBodySize = long.MaxValue;
options.Limits.MaxRequestBodySize = 50 * 1024 * 1024;
options.Limits.KeepAliveTimeout = TimeSpan.FromMinutes(2);
options.Limits.RequestHeadersTimeout = TimeSpan.FromSeconds(30);
});