https://github.com/junosuarez/routing-proxy
npm module: proxy http requests to various servers based on request url
https://github.com/junosuarez/routing-proxy
Last synced: 9 months ago
JSON representation
npm module: proxy http requests to various servers based on request url
- Host: GitHub
- URL: https://github.com/junosuarez/routing-proxy
- Owner: junosuarez
- License: mit
- Created: 2013-05-01T19:17:42.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-01T19:29:07.000Z (about 13 years ago)
- Last Synced: 2025-02-15T16:46:21.695Z (over 1 year ago)
- Language: JavaScript
- Size: 87.9 KB
- Stars: 2
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# routing-proxy
route http requests to servers based on url path
## stability
currently used as a dev tool. use in production at your own risk.
## usage
var http = require('http')
var RoutingProxy = require('routing-proxy')
http.createServer(RoutingProxy()
.add('http://localhost:8009',
'/',
)
.add('https://localhost:8008',
'/api*',
'/socket.io*',
'/login',
'/logout'
)
.add('http://localhost:8081',
'*'
)
.router())
.listen(8000)
## contributors
jden
## license
MIT. (c) 2013 Agile Diagnosis . See LICENSE.md