🐛 Fix development enviorment aspdotnet urls

This commit is contained in:
2025-07-24 18:45:32 +08:00
parent 91ae34d415
commit 31ac45026e

View File

@@ -19,6 +19,9 @@ public static class KestrelConfiguration
options.Limits.KeepAliveTimeout = TimeSpan.FromMinutes(2);
options.Limits.RequestHeadersTimeout = TimeSpan.FromSeconds(30);
var configuredUrl = Environment.GetEnvironmentVariable("ASPNETCORE_URLS");
if (!string.IsNullOrEmpty(configuredUrl)) return;
var certPath = configuration["Service:ClientCert"]!;
var keyPath = configuration["Service:ClientKey"]!;