Skip to content

mpolinowski/docker_ws_video_proxy

Repository files navigation

Docker WS Videostream Proxy

This NGINX proxy brokers a websocket connection between a web client and your local camera. Select the server configuration file you want to use (plain or TLS) in nginx.conf and add your cameras and your servers IP or domain to the selected configuration file inside conf.d.

Note: The repository contains a self signed TLS certificate. This can be used for testing - e.g. with a tool like wscat. But your browser is going to reject it. You will have to provide a valid CA signed certificate (e.g. Let's Encrypt) to use the secure websocket variant:

WebSocket ERROR: {
    "isTrusted": false
}

Run in foreground

docker run --rm --network host -v /path/to/docker_ws_video_proxy:/etc/nginx --name proxy nginx:alpine

Run in background

docker run --rm --network host -v /path/to/docker_ws_video_proxy:/etc/nginx --name proxy nginx:alpine

Related: