feat: initialize project configuration and entry point with Kestrel server settings

This commit is contained in:
armonica committed 2026-08-31 22:00:20 +09:00
1 parent e1c9354512
commit 395adbef78
2 files changed
+16 -1

No files matched your search

+7
View File
@@ -6,6 +6,13 @@ using WebImageViewer.Class.Services;
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
// Docker/Caddyリバースプロキシからの転送(host.docker.internal:5000)を受け付けるため全インターフェースでリッスン
if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("ASPNETCORE_URLS")))
{
builder.WebHost.UseUrls("http://0.0.0.0:5000");
}
// ========================================== // ==========================================
// サービスの登録 (DIコンテナ) // サービスの登録 (DIコンテナ)
// ========================================== // ==========================================
+9 -1
View File
@@ -5,5 +5,13 @@
"Microsoft.AspNetCore": "Warning" "Microsoft.AspNetCore": "Warning"
} }
}, },
"AllowedHosts": "*" "AllowedHosts": "*",
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://0.0.0.0:5000"
} }
}
}
}