Настроить порт через переменную окружения ASPNETCORE_URLS
This commit is contained in:
@@ -4,7 +4,6 @@ using LazyBear.MCP.Services.Kubernetes;
|
||||
using LazyBear.MCP.Services.Logging;
|
||||
using LazyBear.MCP.Services.ToolRegistry;
|
||||
using LazyBear.MCP.TUI;
|
||||
using ModelContextProtocol.Server;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
@@ -38,4 +37,5 @@ var app = builder.Build();
|
||||
|
||||
app.MapMcp();
|
||||
|
||||
app.Run("http://localhost:5000");
|
||||
var urls = Environment.GetEnvironmentVariable("ASPNETCORE_URLS") ?? "http://localhost:5000";
|
||||
app.Run(urls);
|
||||
|
||||
Reference in New Issue
Block a user