fix deploy dotnet backend

This commit is contained in:
2025-10-02 16:59:42 +05:00
parent 109629c6f9
commit 4fdfb37216
6 changed files with 124 additions and 12 deletions

View File

@ -5,6 +5,16 @@ using Npgsql;
var builder = WebApplication.CreateBuilder(args);
// // Force binding to all interfaces in Kubernetes
// Console.WriteLine($"ASPNETCORE_URLS env var: {Environment.GetEnvironmentVariable("ASPNETCORE_URLS")}");
// Console.WriteLine($"ASPNETCORE_HTTP_PORTS env var: {Environment.GetEnvironmentVariable("ASPNETCORE_HTTP_PORTS")}");
// // Clear any existing configuration and force our URL
// builder.WebHost.ConfigureKestrel(options =>
// {
// options.ListenAnyIP(8000);
// });
// Configuration
var config = new AppConfig
{

View File

@ -5,7 +5,6 @@
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"Urls": "http://localhost:8000"
"AllowedHosts": "*"
}