Skip to content

Commit

Permalink
Add AddServiceDiscovery
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpetit committed Jan 8, 2025
1 parent e7a363a commit fc306de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Application/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
builder.Configuration.AddJsonFile(fileInfo.FullName, optional: false, reloadOnChange: true);

// Configure YARP
builder.Services.AddServiceDiscovery();
builder.Services.AddReverseProxy()
.LoadFromConfig(builder.Configuration.GetSection("ReverseProxy"))
.AddServiceDiscoveryDestinationResolver();
Expand Down

0 comments on commit fc306de

Please sign in to comment.