Reverse proxy for stream

Have some questions or having issues with your IP Camera(s), Post them here for the mods and other users to assist you with.
Post Reply
amcrest110
Posts: 6
Joined: Mon Oct 10, 2016 10:11 am

Reverse proxy for stream

Post by amcrest110 »

I have an IP8M-2493EB and I need to set up a reverse proxy to get around passing credentials in the URL. I currently get the stream through http://admin:[email protected]_CAMERA/cgi-bin/mjpg/video.cgi . I'm using nginx but can't get it to work properly -- has anyone had any luck serving the stream without credentials?

When I try to hit :56700, I am prompted for auth even though it's hardcoded (below). Even when I enter the correct credentials, it fails. What am I doing wrong?

Code: Select all

    server {
        listen 56700;
        location / {
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_pass http://IP_CAMERA/cgi-bin/mjpg/video.cgi;
            proxy_set_header Authorization "Basic xxx";
        }
    }
I've also tried adding proxy_pass_header Authorization; but no luck
Post Reply