Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.02 KB

README.md

File metadata and controls

27 lines (19 loc) · 1.02 KB

Yarp.Basic.Template

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.

Installation:

dotnet new -i Ajdvoynos.Template.YARP-Basic

Usage:

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.

Installation from source (git clone this repo):

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

Publishing

To publish the package, you need to run dotnet pack, this will generate a .nupkg file that you can publish to nuget.