> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell-universal/fr/plateforme/plugins/yarp.md).

# YARP

**Identifier:** `PowerShellUniversal.Plugins.YARP`

[YARP](https://microsoft.github.io/reverse-proxy/articles/index.html) (Yet Another Reverse Proxy) est un projet Microsoft qui permet aux applications ASP.NET Core d'agir en tant que proxies inverses. PowerShell Universal expose uniquement cette configuration sans l'étendre de manière significative. Vous pouvez utiliser les [paramètres d'application](/powershell-universal/fr/config/settings.md) pour configurer le proxy ; le démarrage du service PSU activera la fonctionnalité YARP. Consultez les [articles YARP](https://microsoft.github.io/reverse-proxy/articles/index.html) pour comprendre comment configurer le service.

La seule extension que nous fournissons dans YARP est la possibilité de spécifier un rôle PSU requis pour une route de proxy particulière. Par exemple, la configuration suivante applique le rôle Administrator.

```json
{
    "ReverseProxy": {
        "Routes": {
            "route1": {
                "ClusterId": "cluster1",
                "AuthorizationPolicy": "AdministratorRolePolicy",
                "Match": {
                    "Path": "/code/{**catch-all}"
                },
                "Transforms": [
                    {
                        "PathRemovePrefix": "/code"
                    }
                ]
            }
        },
        "Clusters": {
            "cluster1": {
                "Destinations": {
                    "destination1": {
                        "Address": "http://localhost:8080"
                    }
                }
            }
        }
    }
}
```

Vous pouvez remplacer la partie `Administrator` du nom de la politique pour appliquer un rôle différent. Par exemple : `ExecutorRolePolicy`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.devolutions.net/powershell-universal/fr/plateforme/plugins/yarp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
