I have set up vizycam with a custom URL (see nginx reverse proxy config below)
I would like to embed the video stream in another website if possible (without user authentication and in an iframe is OK).
The thing I’m not sure about is how do I get just the current video stream (don’t need settings etc.).
Is there a URL path that I can refer to that just streams the current video output?
Alternatively, would it make more sense to create a new video python app and strip out the settings, then I could embed that in another web page?
I am happy to sort out CSP/proxy settings but just not sure how to get the video source URL.
server {
listen 80;
server_name vizy.mywebsite.net;
# redirect certbot challenges to challenge dir
location ^~ /.well-known/acme-challenge/ {
root /etc/nginx/letsencrypt;
}
location / {
return 301 https://$server_name$request_uri;
}
}
server {
server_name vizy.mywebsite.net;
# increase max request size (for large PDFs)
client_max_body_size 200M;
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/vizy.mywebsite.net/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/vizy.mywebsite.net/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
location / {
proxy_pass http://vizy/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}