microsoft / microsoft/aspire-samples
YARP app to replace `nginx` bits in JS example
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 345
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 30
Description
Does YARP support a simple proxy config, where I can intercept /api HTTP requests, and redirect them to the configured weather API url?
Yes: https://microsoft.github.io/reverse-proxy/articles/config-files.html
Perhaps we could add a YARP project to the solution and use it as the host for all the JS apps. In theory, the YARP project can be as simple as:
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddReverseProxy()
.LoadFromConfig(builder.Configuration.GetSection("ReverseProxy"));
var app = builder.Build();
app.MapReverseProxy();
app.Run();
Originally posted by @DamianEdwards in https://github.com/dotnet/aspire-samples/pull/226#discussion_r1578216683
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the JavaScript example's nginx configuration and the solution entry points; review the referenced YARP configuration and getting-started documentation alongside the provided C# setup. Done means the JavaScript apps are hosted through a YARP project and /api requests reach the configured weather API without the nginx pieces.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, javascript, nginx
- Domain
- api, backend, devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100