/
aprogrammer
/
reverse-proxy-ms-yarp
Обзор
Документация
Войти
/
aprogrammer
/
reverse-proxy-ms-yarp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
samples/ReverseProxy.Transforms.Sample/appsettings.json
72 строки
2 KB
Kahbazi
Change routes from array to object (#900)
08 апр 2021, 22:08
Не верифицирован
08 апр 2021, 22:08
344d968
Код
Авторство
О чём код?
{ "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information" } }, "AllowedHosts": "*", "Kestrel": { "Endpoints": { "https": { "Url": "https://localhost:5001" }, "http": { "Url": "http://localhost:5000" } } }, "ReverseProxy": { "Routes": { "route1": { "ClusterId": "cluster1", "Match": { "Path": "{**catch-all}" }, "Transforms": [ { "PathPrefix": "/prefix" }, { "RequestHeadersCopy": "true" }, { "RequestHeaderOriginalHost": "false" }, { "RequestHeader": "foo0", "Append": "bar" }, { "RequestHeader": "foo1", "Set": "bar, baz" }, { "RequestHeader": "clearMe", "Set": "" }, { "ResponseHeader": "foo", "Append": "bar", "When": "Always" }, { "ResponseTrailer": "foo", "Append": "trailer", "When": "Always" }, { "CustomTransform": "custom value" } ] } }, "Clusters": { "cluster1": { "Metadata": { "CustomMetadata": "custom value" }, "Destinations": { "cluster1/destination1": { "Address": "https://example.com" } } } } } }