bob
Some checks failed
📚 Deploy Documentation / deploy (push) Has been cancelled

This commit is contained in:
Lee
2024-03-02 11:37:04 +00:00
commit e8f72ea949
65 changed files with 11610 additions and 0 deletions

8
docker/entrypoint.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/sh
if [ ! -z "${RTSP_URL:-}" ] && [ ! -z "${HOST}" ] && [ ! -z "${TOKEN}" ]; then
echo "Using RTSP stream from $RTSP_URL"
exec unifi-cam-proxy --host "$HOST" --name "${NAME:-unifi-cam-proxy}" --mac "${MAC:-'AA:BB:CC:00:11:22'}" --cert /client.pem --token "$TOKEN" rtsp -s "$RTSP_URL"
fi
exec "$@"