Skip to content

Commit

Permalink
updating to config subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtallcampbell committed Aug 2, 2024
1 parent 62c9f1c commit d36229d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public Client() {
builder.Configuration.AddJsonFile(Path.Combine(Directory.GetCurrentDirectory(), "appsettings.json"), optional: true, reloadOnChange: false);

if(! string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("SPACEFX_CONFIG_DIR")) && Directory.Exists(Environment.GetEnvironmentVariable("SPACEFX_CONFIG_DIR"))) {
builder.Configuration.AddJsonFile(Path.Combine(Environment.GetEnvironmentVariable("SPACEFX_CONFIG_DIR"), "appsettings.json"), optional: true, reloadOnChange: false);
builder.Configuration.AddJsonFile(Path.Combine(Environment.GetEnvironmentVariable("SPACEFX_CONFIG_DIR"), "config", "appsettings.json"), optional: true, reloadOnChange: false);
}

builder.WebHost.ConfigureKestrel(options => options.ListenAnyIP(50051, o => o.Protocols = HttpProtocols.Http2))
Expand Down

0 comments on commit d36229d

Please sign in to comment.