Welcome! Log In Create A New Profile

Advanced

Setup camera

Posted by rikki78 
Setup camera
January 24, 2020 04:15AM
Hello,

I have a raspberry PI running nginx. This is accessible from outside my network and works fine.
How can I configure it so that I can access a webcam, that is not accessible directly from outside? So the IP from the camera is not added to the portforwarding in my router.

Can someone advise on that?
Re: Setup camera
March 02, 2020 06:23PM
in principle you can create a reverse proxy that routes requests to the webcam. Google it, there are lots of examples, BUT - and it can be a big “but”, not all web cams are easy to do this for....

You may need to experiment to get it working. .

Look up how to create a reverse proxy and then you need a location block something like this....(no guarantee!)

location /cam3/ {
proxy_set_header Host $http_host$request_uri;
proxy_pass http://cam.era.ip.addr:port/;
proxy_read_timeout 120s;
access_log on;
}
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 64
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready