Skip to content

Garyljackson/GenericReverseProxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

A simple and handy little reverse proxy built using YARP that can be used for any purpose you like.

Personally, I've used this within an Azure Web app to proxy calls to Azure Resources within a private vNet.

Configuration

The only configuration needed is to tell the proxy where to proxy calls to.

There are a couple ways you set this.

Config file

Update the value for the Clusters/MinimumCluster/Destinations/MyBackend/Address

For local dev: appsettings.Development.json
For production: appsettings.json

Azure App Setting

If you're using an Azure Web App, you can set this using an app setting with the name.

ReverseProxy__Clusters__MinimumCluster__Destinations__MyBackend__Address

Note the double underscore (__) in the name, that is how Azure works with the next JSON structure.

I suspect this might work with environment variables too, but I haven't specifically tested it.

Other Options

YARP supports a whole heap of different options, this project was based on the most simple configuration.
For more options, have a look at the YARP samples

About

A handy generic ASP.NET core 6 reverse proxy using YARP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors