fieldOfView / OctoPrint-ngrok

An OctoPrint Plugin that provides remote access using ngrok
GNU Affero General Public License v3.0
15 stars 8 forks source link

Tunnel multiple cameras #8

Open kawaczek opened 4 years ago

kawaczek commented 4 years ago

I have two cameras in ocroprint. How to set them to be displayed in the tunnel?

fieldOfView commented 4 years ago

Currently the best (only?) way to do this with the plugin is if you use a reverse proxy (such as haproxy) to make OctoPrint and both the cameras available through the same http port. This is how OctoPi comes configured by default (though only for a single webcam).

A future version of the plugin will let you register additional tunnels (up to a total of 4 with a free ngrok account). including tunnels to your additional camera(s) and possibly additional OctoPrint instances if you have multiple.

jneilliii commented 3 years ago

@fieldOfView this looks like the current webcam issue thread, I just noticed with the NGROK tunnel the default steam isn't loading. I'm using an OctoPi image with default haproxy config and when accessing the site via the NGROK tunnel, the URL /webcam/?action=stream is not seen. I get the webcam stream not loaded error and clicking the link in that message it appears to be going to the correct address with a 404 not found. Any suggestions?

fieldOfView commented 3 years ago

@jneilliii, this thread is more about hosting multiple tunnels. I'll deal with your issue here: #18 (now that I understand what is going wrong).