Skip to content

chenhg5/gin-reverseproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Gin Reverse Proxy Middleware

proxy different domain request to different host through specified proxy rules
no need nginx just go

usage


import proxy "github.com/chenhg5/gin-reverseproxy"

router.Use(proxy.ReverseProxy(map[string] string {
    "www.xyz.com" : "localhost:4001",
    "www.abc.com" : "localhost:4003",
}))


todo

  • Load balance
  • Error handle
  • specified route

About

Gin Reverse Proxy Middleware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages