0.0.1 • Published 6 years ago

oncloud.proxy v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Logo

oncloud.proxy

=================

NPM version Downloads Tests

NPM

Usage

Allows to access defined URLs or local files via one web server.

Specified routes will be available under http://ip:8082/proxy.0/context/.... Of course port, protocol, "proxy.0", can variate depends on settings.

Configuration

  • Extend WEB adapter: For which web instance will active this proxy.
  • Route path: Path for proxy. If "/proxy.0", so the routes will be available under http://webIP:8082/proxy.0/...
  • Error timeout(ms): Minimal interval between retries if the requested resource was unavailable or returned error.

Sample settings

ContextURLDescription
admin/http://localhost:8081access to admin page
router/http://192.168.1.1access to local router
cam/http://user:pass@192.168.1.123access to webcam (e.g. call http://ip:8082/proxy.0/cam/web/snapshot.jpg)
dir//tmp/access to local directory "/tmp/"
dir/tmp/access to local directory "/opt/oncloud/tmp"
file.jpg/tmp/picture.jpgaccess to local file "/tmp/picture.jpg"

**Not all devices can be accessed via proxy.

Some devices wants to be located in the root http://ip/ and cannot run under http://ip/proxy.0/context/.

You can read more about context here

Additionally the user can define the route path for proxy requests.

Changelog

1.0.1 (2018-03-01)

  • (bluefox) Fixed error: after 10 timeouts the web cam was never reachable
  • (bluefox) Ready for Admin3

1.0.0 (2017-10-09)

  • (bluefox) do not allow the error generation to fast

0.2.0 (2017-03-13)

  • (bluefox) fix run-mode

0.0.1 (2017-01-09)

  • (bluefox) initial commit