yarp reverse proxy
verseProxy-3.1.0
Peppermint是基于Microsoft(https://github.com/microsoft/reverse-proxy)的基于ASP.NET,KESTREL和实现Yarp Project的简单而轻的.NET反向代理。
探索文档»
·报告错误·请求功能
Peppermint反向代理是Microsoft Yarp项目(https://microsoft.github.io/reverse-proxy/)的简单实现。
它是Microsoft YARP Project库的一个盒子版本,并将其相互融合到轻型ASP.NET应用程序中。目的是提出YARP反向代理,而不必经历开发阶段,而只有YARP的配置
倍增平台是可用的:
YARP提供:
(返回到顶部)
YARP反向代理为许多工作负载提供了良好的表现,但是您会在繁重的工作量上放松而没有更多的资源。
| 案件 | 样品 | 平均时间(MS) | 最低时间(MS) | 最大时间(MS) | 吞吐量(http呼叫/sec) | 线程 |
|---|---|---|---|---|---|---|
| staticwebapp-(直接) | 10000 | 0 | 0 | 4 | 830,77 | 1 |
| staticwebapp -arr(iis) | 10000 | 1 | 0 | 4 | 635,93 | 1 |
| staticwebapp -peppermint反向代理(便携式)带有IIS的纱线 | 10000 | 1 | 0 | 5 | 627,78 | 1 |
| apiwebapp(直接) | 10000 | 0 | 0 | 4 | 3935,45 | 1 |
| apiwebapp -arr(iis) | 10000 | 0 | 0 | 4 | 1590,07 | 1 |
| apiwebapp- ppmintrv yarp on IIS | 10000 | 0 | 0 | 5 | 1093,37 | 1 |
(返回到顶部)
您必须解开双层式并配置AppSettings.json文件
您必须安装ASP.NET 6、7、8运行时。如果使用IIS,则必须在ASP.NET 6,7捆绑包中安装它。
(返回到顶部)
{
"AllowedHosts" : " * " ,
"Logging" : {
"LogLevel" : {
"Default" : " Information " ,
"Microsoft" : " Information " ,
"Microsoft.Hosting.Lifetime" : " Information "
}
},
"Serilog" : {
"Using" : [ " Serilog.Sinks.File " ],
"MinimumLevel" : " Information " ,
"WriteTo" : [
{
"Name" : " File " ,
"Args" : {
"path" : " proxy-.log " ,
"rollingInterval" : " Day "
}
}
]
},
"ReverseProxy" : {
"Routes" : {
"route1" : {
"ClusterId" : " defaultCluster " ,
"Match" : {
"Path" : " {**catch-all} "
},
"Transforms" : [
{ "PathPrefix" : " / " },
{ "RequestHeadersCopy" : " true " },
{ "RequestHeaderOriginalHost" : " false " }
]
}
},
"Clusters" : {
"defaultCluster" : {
"Destinations" : {
"destination1" : {
"Address" : " https://api.ipify.org/ "
}
},
"HttpClient" : {
"DangerousAcceptAnyServerCertificate" : " true " ,
"EnableMultipleHttp2Connections" : " true "
}
}
}
}
}(返回到顶部)
贡献是使开源社区成为学习,启发和创造的惊人场所的原因。您所做的任何贡献都非常感谢。
如果您有一个可以使情况变得更好的建议,请分配存储库并创建拉动请求。您也可以简单地使用标签“增强”打开问题。别忘了给项目一个明星!再次感谢!
git checkout -b feature/AmazingFeature )git commit -m 'Add some AmazingFeature' )git push origin feature/AmazingFeature )(返回到顶部)
根据MIT许可分发。有关更多信息,请参见LICENSE.txt 。
(返回到顶部)
Alexandre Julien- @AlexandRejulien
项目链接:https://github.com/alexandrejulien/peppermint.reverseproxy
(返回到顶部)