Is it possible to create a secure connection using motion? I have embedded my motion stream on an HTML page using Apache, but it will not display as it is an insecure img on a secure page encrypted with letsencrypt and certbot. I can view the motion stream at:
http://www.example.com:<Motion-Port>
but the embedded video at
https://example.com/camera.html
will not display.
img code:
<img id="camera" src="http://xx.xxx.xxx.xx:8081">
I tried to modify the motion.conf file but that doesn't seem to do anything
webcontrol_tls on
stream_tls on
webcontrol_cert /etc/letsencrypt/live/www.example.com/fullchain.pem
webcontrol_key /etc/letsencrypt/live/www.example.com/privkey.pem
Otherwise, I'd be just as happy to learn about another way to display the raspberry pi's camera stream to my website.