Hello,
I’ve attached a diagram of the setup I’m trying to achieve. Hopefully its clearer than trying to explain it with text…
Basically I’m trying to stream the camera to a selfhosted webpage.
The camera is connected to the VPN server
The stream is picked up on the Media Server (MediaMTX)
The stream is available from anywhere on the local network via whatever protocol MediaMTX offers. All good here.
The webserver set up is Nginx. Works fine.
A basic Wordpress site is set up and I can access it via a domain name over the internet with HTTPS.
What I’m struggling with is getting the “local stream” (read local IP) in to the website. I have WP plugins that let me embed streams, but I suspect the issue is the local IP is not available over the internet so you cant just point it to 192.X.X.X. Saying that though, even on my local network I cant see the stream.
So the questions are,
- how can I serve the stream to nginx/ wordpress and
- can I somehow have nginx treat the stream as a locally hosted resource that can proxy the stream to remote web browsers?
Ideally I dont want to open up a port on the LAN for a direct streaming to the internet which the website then points to as it seems a unsafe… But if that’s the only way then I guess it can’'t be helped.
Happy to provide more info if needed.
TIA
Edit: Wordpress is for a separate website project outside of the scope of this post. Only 1 page will be for the video player/ stream but there will be other uses for the website. Not just streaming
Why Wordpress seems like a heavy solution for a basic web page and lots of maintenance and security vulnerabilities.
Free, self hostable, not subscription based, and lots of support. I’m making a whole website of which one page will be a “live stream”. Happy to explore other options though!
Edit: It won’t be a high traffic production website btw. Just a basic one for a select few users
Try ghost
Hadn’t heard of it before. Thank you!