Refactor Kestrel configuration to support dynamic port assignment and update appsettings for HTTP endpoint

This commit is contained in:
phoenix
2025-02-03 21:50:00 +08:00
parent a42c5753c9
commit 4cc0e99149
2 changed files with 16 additions and 2 deletions
+8
View File
@@ -4,5 +4,13 @@
"Default": "Information",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"RunAsWindowsService": false,
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://*:5000"
}
}
}
}