🐛 Fix aspire local dev issue

This commit is contained in:
2025-09-21 17:25:43 +08:00
parent 4d83c2de31
commit a88843a4c2
9 changed files with 38 additions and 30 deletions

View File

@@ -16,7 +16,6 @@ public static class KestrelConfiguration
long maxRequestBodySize = 50 * 1024 * 1024
)
{
builder.Host.UseContentRoot(Directory.GetCurrentDirectory());
builder.WebHost.ConfigureKestrel(options =>
{
options.Limits.MaxRequestBodySize = maxRequestBodySize;
@@ -31,7 +30,7 @@ public static class KestrelConfiguration
listenOptions.UseHttps(selfSignedCert);
});
var httpPorts = configuration.GetValue<string>("HTTP_PORTS", "5000")
var httpPorts = configuration.GetValue<string>("HTTP_PORTS", "6000")
.Split(',', StringSplitOptions.RemoveEmptyEntries)
.Select(p => int.Parse(p.Trim()))
.ToArray();