Project Template to quickly setup a basic reverse proxy using YARP. This template generates a simple .Net6 web app with the default options as found in the YARP Getting Started documentation page.
dotnet new -i Ajdvoynos.Template.YARP-Basic
dotnet new yarp-basic -f https://yourUrlHere && dotnet run
The only required argument is -f
which is the URL where the requests will be proxied to.
Download the repository and run dotnet new -i templates/yarp-basic/
.
After any changes to the template you need to reinstall the package and clear the cache by running:
dotnet new -u templates\yarp-basic && dotnet new -i templates\yarp-basic && dotnet new --debug:rebuildcache
To publish the package, you need to run dotnet pack
, this will generate a .nupkg file that you can publish to nuget.