Advanced usage of zms (nph-zms) to redirect video feed

Previous development branch now released as 1.36
Locked
Nasrudin
Posts: 2
Joined: Sun Jul 05, 2020 6:10 am

Advanced usage of zms (nph-zms) to redirect video feed

Post by Nasrudin »

So rather new to zoneminder here. Not new at all to FreeBSD (which I'm using this on), nginx, php, mysql etc. I'm having a bit of an issue with redirecting video feeds. I'm using this abbreviated and redacted nginx config:

Code: Select all

server {
	listen <ip1>:443 ssl http2;
        server_name intranet.my.domain; 
        ...
        location /cgi-bin/nph-zms {
	    include fastcgi_params;
	    fastcgi_param SCRIPT_FILENAME $request_filename;
	    fastcgi_pass  unix:/tmp/zmcgi.sock;
	}
}

server {
	listen <ip2>:80;
	server_name control.my.domain;
	...
        location /cgi-bin/nph-zms {
	    include fastcgi_params;
	    fastcgi_param SCRIPT_FILENAME $request_filename;
	    fastcgi_pass  unix:/tmp/zmcgi.sock;
	}
}
On <ip2>, where I run zoneminder, I've no problem with trying to get a video feed somewhat like this suggestion from one of your documentation pages:

Code: Select all

img width="500px" height="500px" src="http://zmserveripaddress/zm/cgi-bin/nph-zms?mode=jpeg&monitor=#&scale=100&maxfps=5&user=username&pass=password"
but on <ip1>, where I'm trying to provide the feed to an intranet, this always gives a 403.

Anyone have a clue as to where this is going wrong? I've already tried making <ip1> http instead of https. Thanks in advance.
Locked