Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chenhg5/gin-reverseproxy
Gin Reverse Proxy Middleware
https://github.com/chenhg5/gin-reverseproxy
Last synced: about 1 month ago
JSON representation
Gin Reverse Proxy Middleware
- Host: GitHub
- URL: https://github.com/chenhg5/gin-reverseproxy
- Owner: chenhg5
- Created: 2018-04-13T05:27:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-13T05:34:11.000Z (over 6 years ago)
- Last Synced: 2024-10-02T09:06:49.870Z (about 2 months ago)
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 12
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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