remote
Version:
Work on client-side files with a remote API server transparently
33 lines (32 loc) • 718 B
JSON
{
"directory": "./example",
"remote": {
"host": "google.com",
"port": 80
},
"proxy": {
"host": "localhost",
"port": 9001
},
"server": {
"host": "localhost",
"port": 9000
},
"headers": {
"Host": "remote-api-host.com",
"X-Secret" : "awesome"
},
"bounceToRemote": false,
"bounces" : [
"public/.*",
"assets/.*"
],
"mapping": true,
"mappings": {
".*/api/users/1/remove": {"result": "ok"},
".*/api/users/.*":"example/remote.json",
".*/public/js/awesome.js":"example/remote.json",
".*/img/.*":"example/",
".*/api/pvt/.*":"http://google.com"
}
}