Skip to content

puncsky/reverse-proxy-golang-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reverse-proxy-golang-starter

A handy but powerful light-weight reverse proxy starter template with Golang.

How to use it?

Update main.go to forward traffic as you wish. Now /blog points to https://example.com and / points to https://tianpan.co:

	cfgs := []ForwardCfg{
		{"/blog", "https://example.com", false},
		{"/", "https://tianpan.co", true},
	}

and then run the project

make install
make dev

or build to binary

make build
PORT=4321 ./app

Licence

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published