You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/fundamentals/servers/yarp/config-files.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Configuration Files
4
4
description: Configuration Files
5
5
author: rick-anderson
6
6
ms.author: riande
7
-
ms.date: 02/06/2025
7
+
ms.date: 2/6/2025
8
8
ms.topic: article
9
9
content_well_notification: AI-contribution
10
10
ai-usage: ai-assisted
@@ -37,7 +37,7 @@ app.Run();
37
37
```
38
38
**Note**: For details about middleware ordering see [here](/aspnet/core/fundamentals/middleware/#middleware-order).
39
39
40
-
Configuration can be modified during the load sequence using [Configuration Filters](config-filters.md).
40
+
Configuration can be modified during the load sequence using [Configuration Filters](xref:fundamentals/servers/yarp/config-filters).
41
41
42
42
## Multiple Configuration Sources
43
43
As of 1.1, YARP supports loading the proxy configuration from multiple sources. LoadFromConfig may be called multiple times referencing different IConfiguration sections or may be combine with a different config source like InMemory. Routes can reference clusters from other sources. Note merging partial config from different sources for a given route or cluster is not supported.
@@ -95,7 +95,7 @@ The routes section is an unordered collection of route matches and their associa
95
95
- Match - contains either a Hosts array or a Path pattern string. Path is an ASP.NET Core route template that can be defined as [explained here](/aspnet/core/fundamentals/routing#route-templates).
96
96
Route matching is based on the most specific routes having highest precedence as described [here](/aspnet/core/fundamentals/routing#url-matching). Explicit ordering can be achieved using the `order` field, with lower values taking higher priority.
97
97
98
-
[Headers](header-routing.md), [Authorization](authn-authz.md), [CORS](cors.md), and other route based policies can be configured on each route entry. For additional fields see [RouteConfig](xref:Yarp.ReverseProxy.Configuration.RouteConfig).
98
+
[Headers](xref:fundamentals/servers/yarp/header-routing), [Authorization](xref:fundamentals/servers/yarp/authn-authz), [CORS](xref:fundamentals/servers/yarp/cors), and other route based policies can be configured on each route entry. For additional fields see [RouteConfig](xref:Yarp.ReverseProxy.Configuration.RouteConfig).
99
99
100
100
The proxy will apply the given matching criteria and policies, and then pass off the request to the specified cluster.
101
101
@@ -234,4 +234,4 @@ For additional fields see [ClusterConfig](xref:Yarp.ReverseProxy.Configuration.C
234
234
}
235
235
```
236
236
237
-
For more information see [logging configuration](diagnosing-yarp-issues.md#logging) and [HTTP client configuration](http-client-config.md).
237
+
For more information see [logging configuration](diagnosing-yarp-issues.md#logging) and [HTTP client configuration](xref:fundamentals/servers/yarp/http-client-config).
Copy file name to clipboardExpand all lines: aspnetcore/fundamentals/servers/yarp/config-filters.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Configuration Filters
4
4
description: Configuration Filters
5
5
author: rick-anderson
6
6
ms.author: riande
7
-
ms.date: 02/06/2025
7
+
ms.date: 2/6/2025
8
8
ms.topic: article
9
9
content_well_notification: AI-contribution
10
10
ai-usage: ai-assisted
@@ -13,7 +13,7 @@ ai-usage: ai-assisted
13
13
# Configuration Filters
14
14
15
15
## Introduction
16
-
YARP configuration for routes, clusters, and destinations can be loaded from [configuration files](config-files.md) or from [configuration providers](config-providers.md). Configuration filters can be used to modify that raw input before it's validated and applied.
16
+
YARP configuration for routes, clusters, and destinations can be loaded from [configuration files](xref:fundamentals/servers/yarp/config-files) or from [configuration providers](xref:fundamentals/servers/yarp/config-providers). Configuration filters can be used to modify that raw input before it's validated and applied.
17
17
18
18
Filters can be used for a variety of purposes such as:
19
19
- Supplementing config fields with data from other sources like the deployment environment
@@ -17,7 +17,7 @@ The [Basic Yarp Sample](https://github.com/microsoft/reverse-proxy/tree/main/sam
17
17
18
18
See [ReverseProxy.Code.Sample](https://github.com/microsoft/reverse-proxy/tree/main/samples/ReverseProxy.Code.Sample) for an example of a custom configuration provider.
19
19
20
-
Configuration can be modified during the load sequence using [Configuration Filters](config-filters.md).
20
+
Configuration can be modified during the load sequence using [Configuration Filters](xref:fundamentals/servers/yarp/config-filters).
21
21
22
22
## Structure
23
23
[IProxyConfigProvider](xref:Yarp.ReverseProxy.Configuration.IProxyConfigProvider) has a single method `GetConfig()` that should return an [IProxyConfig](xref:Yarp.ReverseProxy.Configuration.IProxyConfig) instance. The IProxyConfig has lists of the current routes and clusters, as well as an `IChangeToken` to notify the proxy when this information is out of date and should be reloaded, which will cause `GetConfig()` to be called again.
@@ -28,7 +28,7 @@ The routes section is an unordered collection of named routes. A route contains
28
28
- ClusterId - refers to the name of an entry in the clusters section.
29
29
- Match - contains either a Hosts array or a Path pattern string. Path is an ASP.NET Core route template that can be defined as [explained here](/aspnet/core/fundamentals/routing#route-templates).
30
30
31
-
[Headers](header-routing.md), [Authorization](authn-authz.md), [CORS](cors.md), and other route based policies can be configured on each route entry. For additional fields see [RouteConfig](xref:Yarp.ReverseProxy.Configuration.RouteConfig).
31
+
[Headers](xref:fundamentals/servers/yarp/header-routing), [Authorization](xref:fundamentals/servers/yarp/authn-authz), [CORS](xref:fundamentals/servers/yarp/cors), and other route based policies can be configured on each route entry. For additional fields see [RouteConfig](xref:Yarp.ReverseProxy.Configuration.RouteConfig).
32
32
33
33
The proxy will apply the given matching criteria and policies, and then pass off the request to the specified cluster.
0 commit comments