fix: add BackendPort configuration to support dynamic backend port setting
Some checks failed
Build and Deploy to Production / deploy (push) Has been cancelled
Some checks failed
Build and Deploy to Production / deploy (push) Has been cancelled
This commit is contained in:
@@ -15,7 +15,7 @@ using System.Net;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
if (builder.Configuration["BACKEND_PORT"] is { Length: > 0 } port && ushort.TryParse(port, out _))
|
||||
if (builder.Configuration["BackendPort"] is { Length: > 0 } port && ushort.TryParse(port, out _))
|
||||
{
|
||||
builder.WebHost.UseUrls($"http://0.0.0.0:{port}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user