-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"ReverseProxy" is the simplest and most practical way is to support powershell ! #167
Comments
good lssues!!! |
Different customers want different features - I respect the desire for a powershell configuration API. That will need to have a way to talk to the proxy service, which may well be on a different host or in a container, and so I would suggest that a starting point would be to have a REST or gRPC endpoint that can configure the proxy. A powershell module would then be able to talk to that API to do the configuration. The biggest complication will be auth - as you want to authenticate and authorize who can change proxy config. #125 tracks a REST/gRPC endpoint. |
In terms of shipping, then goal is for 1.0 to be around the same time as .NET 5. It depends on what feature sets are required by customers for it to be considered a viable product. |
Q: How to let powershell add a backend server to YARP? **Every day, every version, developers can change the configuration file format and data structure. No need to consider compatibility,
be better than 2.** 2 YARP listen 127.0.0.1:12345, and then powershell adds the back-end server through REST without auth Q: Will YARP provide compatibility with .net core 3.1? user app want add back end to YARP--->commandline--->ssh client---> ssh server---> in windows:winrm client --->winrm server |
api getway "kong" urlrewrite use 【nginx + lua + 127.0.0.1+curl】,we can use 【yarp + powershell + .net core method,property】 |
Not something we’re going to build into yarp, at least not in v1. I think it’s fine to fork or build an addon for something like this and see where the interest lies. |
@davidfowl Powershell is here to help yarp, not to ask yarp for something. 1 powershell helps yarp to expose .net core class, method, property, and you do n’t need to do anything at first. 2 In the end you need to make a powershell module: You can assign this task to others, or do it one year later . it just makes the command look more elegant, without this module, you can do it with the above command. |
Microservices, docker and asp.net core applications require api gateways.app need add and delete backends with commands.
Performance should not be a priority,
The configuration file format should not be a priority.
Supporting the command line is the priority.
"ReverseProxy" is the simplest and most practical way is to support powershell !
Can ReverseProxy support command interface support?
If the reverse proxy can support command interface support, it is excellent.
powershell 7.1 preview uses .net core 5,
powershell 7.0 uses .net core 3.1,
Powershell uses ConvertFrom-Json to convert json to .net hash table object.
I think the simplest and most practical way is:
release ReverseProxy dll and make a powershell module to https://www.powershellgallery.com/
Use the powershell command to add .net object:
Add-ReverseProxy -name 'server1' -ipaddress '192.168.0.1'
Remove-ReverseProxy -name 'server1' -ipaddress '192.168.0.1'
and then sync "server1.json" to the disk configuration file every 10 seconds. The format of the configuration file is not important.
Start-ReverseProxy -listenip '1.2.3.4'
Stop-ReverseProxy
Add-UrlRewrite -name 'aaa' -base 'http://192.168.0.1' -url '/a/b' -Rewriteto 'xxx'
Remove-UrlRewrite
by the way:
Recently, my project needs a reverse proxy. When will it be released?
The text was updated successfully, but these errors were encountered: