summary refs log tree commit diff
path: root/extra/admin-api/Spacebar.GatewayOffload/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'extra/admin-api/Spacebar.GatewayOffload/Program.cs')
-rw-r--r--extra/admin-api/Spacebar.GatewayOffload/Program.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/extra/admin-api/Spacebar.GatewayOffload/Program.cs b/extra/admin-api/Spacebar.GatewayOffload/Program.cs

index 76e7797c..5cfe28d4 100644 --- a/extra/admin-api/Spacebar.GatewayOffload/Program.cs +++ b/extra/admin-api/Spacebar.GatewayOffload/Program.cs
@@ -5,6 +5,8 @@ using Spacebar.Interop.Authentication.AspNetCore; using Spacebar.Models.Db.Contexts; var builder = WebApplication.CreateBuilder(args); +if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("APPSETTINGS_PATH"))) + builder.Configuration.AddJsonFile(Environment.GetEnvironmentVariable("APPSETTINGS_PATH")!); // Add services to the container.