From fd8395cc4849ef4be700089d9f3521b12c20bfa5 Mon Sep 17 00:00:00 2001 From: troogs Date: Wed, 4 Feb 2026 21:29:00 +0100 Subject: [PATCH] Update configuration for deployment - Change API base address to external IP for development - Update launch settings to bind to any host interface - Remove commented CORS policy code --- src/ASTRAIN.Api/Program.cs | 4 ---- src/ASTRAIN.Api/Properties/launchSettings.json | 2 +- src/ASTRAIN.Client/wwwroot/appsettings.Development.json | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/ASTRAIN.Api/Program.cs b/src/ASTRAIN.Api/Program.cs index 8b86a0a..2a6612c 100644 --- a/src/ASTRAIN.Api/Program.cs +++ b/src/ASTRAIN.Api/Program.cs @@ -15,10 +15,6 @@ builder.Services.AddCors(options => policy.AllowAnyOrigin() .AllowAnyHeader() .AllowAnyMethod(); - - // policy.WithOrigins("http://localhost:5016", "http://:5016", "https://localhost:7252") - // .AllowAnyHeader() - // .AllowAnyMethod(); }); }); builder.Services.AddDbContext(options => diff --git a/src/ASTRAIN.Api/Properties/launchSettings.json b/src/ASTRAIN.Api/Properties/launchSettings.json index fbe357a..189abf6 100644 --- a/src/ASTRAIN.Api/Properties/launchSettings.json +++ b/src/ASTRAIN.Api/Properties/launchSettings.json @@ -14,7 +14,7 @@ "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": false, - "applicationUrl": "https://localhost:7049;http://localhost:5055", + "applicationUrl": "https://+:7049;http://+:5055", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } diff --git a/src/ASTRAIN.Client/wwwroot/appsettings.Development.json b/src/ASTRAIN.Client/wwwroot/appsettings.Development.json index eabb971..d63a334 100644 --- a/src/ASTRAIN.Client/wwwroot/appsettings.Development.json +++ b/src/ASTRAIN.Client/wwwroot/appsettings.Development.json @@ -1,3 +1,3 @@ { - "ApiBaseAddress": "http://localhost:5055" + "ApiBaseAddress": "http://10.20.30.99:5055" }