Skip to content

Commit

Permalink
Add grpc server to yarp and use the apphost name for the address so w…
Browse files Browse the repository at this point in the history
…e don't have to specify the port.

The "Host": "localhost" is required at the moment do to some bug with how it uses the dev-cert.

see dotnet/aspire#836
  • Loading branch information
StevenTCramer committed May 22, 2024
1 parent d309d0f commit 700eeb6
Showing 1 changed file with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,40 @@
"Match": {
"Path": "/api/web-server/{**catch-all}"
}
},
"GrpcRoute": {
"ClusterId": "Grpc.Server",
"Match": {
"Path": "/grpc/{**catch-all}"
},
"Transforms": [
{
"PathRemovePrefix": "/grpc"
}
]
}
},
"Clusters": {
"Api.Server": {
"Destinations": {
"Api.Server": {
"Address": "https://localhost:7255",
"Address": "https://api-server",
"Host": "localhost"
}
}
},
"Web.Server": {
"Destinations": {
"Web.Server": {
"Address": "https://localhost:7000",
"Address": "https://web-server",
"Host": "localhost"
}
}
},
"Grpc.Server": {
"Destinations": {
"Grpc.Server": {
"Address": "https://grpc-server",
"Host": "localhost"
}
}
Expand Down

0 comments on commit 700eeb6

Please sign in to comment.