Linux (x64 or ARM) and Windows Gateway
Download the correct version of the ONVIF Uplink Gateway package from here.
Linux
-
Unzip the package and run
./docker_install.sh
script -
Create the access tokens:
-
Log in to the web client and go to the Cameras page
-
Click Add camera > Uplink
-
Enter the camera name, camera Onvif username, and password and click Apply
-
Copy and save the access token to the file (see step 3).
-
-
Create and configure your environment variable files:
access_tokens.envCODEACCESS_TOKEN_1=eyJjYW1pZCI6IDEyMzQ1NiwgInVwbGluayI6ICJkZXYtYXBpLnByb3h5LmNsb3VkLXZtcy5jb20ifQo= ACCESS_TOKEN_2=eyJjYW1pZCI6IDEyMzQ1NiwgInVwbGluayI6ICJkZXYtYXBpLnByb3h5LmNsb3VkLXZtcy5jb20ifQo= ...
This file contains access tokens for each camera. You can include up to 16 access tokens. Each token should be in a separate line.
cameras.envCODECAMERA_IP_ADDRESS_1=192.168.2.14 CAMERA_RTSP_PORT_1=554 CAMERA_HTTP_PORT_1=80 CAMERA_IP_ADDRESS_2=192.168.2.16 CAMERA_RTSP_PORT_2=554 CAMERA_HTTP_PORT_2=80 ...
This file contains IP addresses, RTSP and HTTP ports for cameras (up to 16). Each parameter should be on a separate line. RTSP and HTTP ports are optional and if you skip them then the default ports will be used (RTSP: 554, HTTP: 80).
-
Run
./start.sh
script – the cameras should start streaming and you should see the live video in the web client. -
You can check the status and logs of the container by using the following commands
CODEdocker ps docker logs <container-id>
Windows
-
Install WSL2 on your Windows device: https://learn.microsoft.com/en-us/windows/wsl/install
-
Install Docker Desktop on Windows device: https://docs.docker.com/desktop/install/windows-install/
-
Open your WSL terminal in Windows and navigate to the directory where you extracted the gateway package. Continue with the same steps as in the Linux section.