feat: initialize project configuration and entry point with Kestrel server settings
This commit is contained in:
1 parent
e1c9354512
commit
395adbef78
2 files changed
+16
-1
No files matched your search
@@ -6,6 +6,13 @@ using WebImageViewer.Class.Services;
|
||||
|
||||
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コンテナ)
|
||||
// ==========================================
|
||||
|
||||
@@ -5,5 +5,13 @@
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
"AllowedHosts": "*",
|
||||
"Kestrel": {
|
||||
"Endpoints": {
|
||||
"Http": {
|
||||
"Url": "http://0.0.0.0:5000"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user