Gateway proxy for contained frontend to access other services

This commit is contained in:
2025-07-25 22:24:02 +08:00
parent a4b84f0717
commit d13fb8b0e4
8 changed files with 109 additions and 5 deletions

View File

@@ -47,6 +47,8 @@ using (var scope = app.Services.CreateScope())
// Configure application middleware pipeline
app.ConfigureAppMiddleware(builder.Configuration, builder.Environment.ContentRootPath);
app.MapGatewayProxy();
app.MapPages(Path.Combine(builder.Environment.WebRootPath, "dist", "index.html"));
// Configure gRPC