Skip to content

Commit

Permalink
updating to use new secret
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Beslogic committed May 23, 2024
1 parent 045c776 commit 43bec47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/releaf/backend/Releaf.Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
using Releaf.Application.DI;

var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddKeyPerFile(directoryPath: "/run/secrets", optional: false);
if(builder.Environment.IsProduction())
{
builder.Configuration.AddKeyPerFile(directoryPath: "/run/secrets", optional: false);
}

// Add services to the container.
builder.Services.AddGenParker(builder.Configuration);
Expand Down

0 comments on commit 43bec47

Please sign in to comment.