https://github.com/vanng822/rproxy
https://github.com/vanng822/rproxy
golang reverse-proxy
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/vanng822/rproxy
- Owner: vanng822
- License: mit
- Created: 2015-04-01T17:08:01.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-05T07:10:40.000Z (over 10 years ago)
- Last Synced: 2025-01-18T05:27:33.725Z (12 months ago)
- Topics: golang, reverse-proxy
- Language: Go
- Size: 21.3 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rproxy
The idea is to have a proxy where host can be registered dynamically.
The goal is creating something for development purpose where developers can
register their application server and this proxy will send request to correct place.
# Usage example for fakedomain.tld
## Adding backend node to a server
curl -d 'serverName=fakedomain.tld&targetUrl=http://127.0.0.1:8080' 'http://127.0.0.1:5556/_server/backend'
## Show list of servers
curl 'http://127.0.0.1:5556/_server'
## Show list of backend node for a server
curl 'http://127.0.0.1:5556/_server/backend?serverName=fakedomain.tld'
## Delete a backend node
curl -X DELETE 'http://127.0.0.1:5556/_server/backend?serverName=fakedomain.tld&targetUrl=http://127.0.0.1:8080'