Skip to content

Commit d105cd4

Browse files
committed
Update README.md
1 parent 6ccea73 commit d105cd4

1 file changed

Lines changed: 4 additions & 21 deletions

File tree

README.md

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -259,38 +259,21 @@ An optional route prefix can be provided during configuration.
259259
#### `UseSelfSignedCertificate()`
260260
Enables automatic self-signed certificate generation for HTTPS endpoints.
261261

262-
```csharp
263-
builder.WebHost.ConfigureKestrel(options =>
264-
{
265-
options.UseSelfSignedCertificate();
266-
});
267-
```
268-
269262
#### `ConfigureReverseProxy()`
270263
Registers reverse proxy services in the DI container.
271264

272-
```csharp
273-
builder.Services.ConfigureReverseProxy(builder.Configuration);
274-
```
265+
#### `UseReverseProxy()`
266+
Adds the reverse proxy middleware.
275267

276268
#### `UseReverseProxyApi()`
277269
Maps the runtime configuration API endpoints with an optional route prefix.
278270

279-
```csharp
280-
app.UseReverseProxyApi(routePrefix: "/api");
281-
```
271+
#### `UseBlackholeCatchAll()`
272+
Adds a blackhole route that causes unmatched routes to be ignored.
282273

283274
#### `WithReverseProxyReference()`
284275
Configures Aspire service discovery for a resource service.
285276

286-
```csharp
287-
reverseProxy.WithReverseProxyReference(
288-
serviceName: "my-service",
289-
endpoint: service.GetEndpoint("http"),
290-
hostName: "my-service.local"
291-
);
292-
```
293-
294277
## Troubleshooting
295278

296279
### Certificate trust issues

0 commit comments

Comments
 (0)