proxme
v1.1.0
Published
Simple proxy lib
Downloads
3
Readme
Proxme
Simple express proxy
Usage
1. Create a config.toml file
TODO
[proxy]
port = 5000 # The port all request will be proxied through
# API / Backend
[[servers]]
url = 'http://localhost:3000'
paths = [
"api",
]
# Frontend
[[servers]]
url = 'http://localhost:4000'
paths = [
"", # This is equal to "/" page on site
"posts",
"blog",
]
2. Install proxme
$ npm install -g proxme
3. Run proxme with your config.toml file
$ proxme config.toml
# Use --verbose to have all proxied requests logged
$ proxme config.toml --verbose