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.
http://webIP:8082/proxy.0/...
Context | URL | Description |
---|---|---|
admin/ | http://localhost:8081 | access to admin page |
router/ | http://192.168.1.1 | access to local router |
cam/ | http://user:pass@192.168.1.123 | access 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/iobroker/tmp" |
file.jpg | /tmp/picture.jpg | access 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.
The MIT License (MIT)
Copyright (c) 2017-2022 bluefox dogafox@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.