diff --git a/README.md b/README.md index 2e726083..dbcb9a0d 100644 --- a/README.md +++ b/README.md @@ -163,54 +163,54 @@ Next to attaching the configuration file, it is also possible to override the co -e AGENT_CAPTURE_CONTINUOUS=true \ -d --restart=always kerberos/agent:latest -| Name | Description | Default Value | -| --------------------------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------- | -| `AGENT_USERNAME` | The username used to authenticate against the Kerberos Agent login page. | "root" | -| `AGENT_PASSWORD` | The password used to authenticate against the Kerberos Agent login page. | "root" | -| `AGENT_KEY` | A unique identifier for your Kerberos Agent, this is auto-generated but can be overriden. | "" | -| `AGENT_NAME` | The agent friendly-name. | "agent" | -| `AGENT_TIMEZONE` | Timezone which is used for converting time. | "Africa/Ceuta" | -| `AGENT_REMOVE_AFTER_UPLOAD` | When enabled, recordings uploaded successfully to a storage will be removed from disk. | "true" | -| `AGENT_OFFLINE` | Makes sure no external connection is made. | "false" | -| `AGENT_AUTO_CLEAN` | Cleans up the recordings directory. | "true" | -| `AGENT_AUTO_CLEAN_MAX_SIZE` | If `AUTO_CLEAN` enabled, set the max size of the recordings directory in (MB). | "100" | -| `AGENT_TIME` | Enable the timetable for Kerberos Agent | "false" | -| `AGENT_TIMETABLE` | A (weekly) time table to specify when to make recordings "start1,end1,start2,end2;start1.. | "" | -| `AGENT_REGION_POLYGON` | A single polygon set for motion detection: "x1,y1;x2,y2;x3,y3;... | "" | -| `AGENT_CAPTURE_IPCAMERA_RTSP` | Full-HD RTSP endpoint to the camera you're targetting. | "" | -| `AGENT_CAPTURE_IPCAMERA_SUB_RTSP` | Sub-stream RTSP endpoint used for livestreaming (WebRTC). | "" | -| `AGENT_CAPTURE_IPCAMERA_ONVIF` | Mark as a compliant ONVIF device. | "" | -| `AGENT_CAPTURE_IPCAMERA_ONVIF_XADDR` | ONVIF endpoint/address running on the camera. | "" | -| `AGENT_CAPTURE_IPCAMERA_ONVIF_USERNAME` | ONVIF username to authenticate against. | "" | -| `AGENT_CAPTURE_IPCAMERA_ONVIF_PASSWORD` | ONVIF password to authenticate against. | "" | -| `AGENT_CAPTURE_RECORDING` | Toggle for enabling making recordings. | "true" | -| `AGENT_CAPTURE_CONTINUOUS` | Toggle for enabling continuous or motion based recording. | "false" | -| `AGENT_CAPTURE_PRERECORDING` | If `CONTINUOUS` set to `false`, specify the recording time (seconds) before after motion event. | "10" | -| `AGENT_CAPTURE_POSTRECORDING` | If `CONTINUOUS` set to `false`, specify the recording time (seconds) after motion event. | "20" | -| `AGENT_CAPTURE_MAXLENGTH` | The maximum length of a single recording (seconds). | "30" | -| `AGENT_CAPTURE_PIXEL_CHANGE` | If `CONTINUOUS` set to `false`, the number of pixel require to change before motion triggers. | "150" | -| `AGENT_CAPTURE_FRAGMENTED` | Set the format of the recorded MP4 to fragmented (suitable for HLS). | "false" | -| `AGENT_CAPTURE_FRAGMENTED_DURATION` | If `AGENT_CAPTURE_FRAGMENTED` set to `true`, define the duration (seconds) of a fragment. | "8" | -| `AGENT_MQTT_URI` | A MQTT broker endpoint that is used for bi-directional communication (live view, onvif, etc) | "tcp://mqtt.kerberos.io:1883" | -| `AGENT_MQTT_USERNAME` | Username of the MQTT broker. | "" | -| `AGENT_MQTT_PASSWORD` | Password of the MQTT broker. | "" | -| `AGENT_STUN_URI` | When using WebRTC, you'll need to provide a STUN server. | "stun:turn.kerberos.io:8443" | -| `AGENT_TURN_URI` | When using WebRTC, you'll need to provide a TURN server. | "turn:turn.kerberos.io:8443" | -| `AGENT_TURN_USERNAME` | TURN username used for WebRTC. | "username1" | -| `AGENT_TURN_PASSWORD` | TURN password used for WebRTC. | "password1" | -| `AGENT_CLOUD` | Store recordings in Kerberos Hub (s3), Kerberos Vault (kstorage) or Dropbox (dropbox). | "s3" | -| `AGENT_HUB_URI` | The Kerberos Hub API, defaults to our Kerberos Hub SAAS. | "https://api.cloud.kerberos.io" | -| `AGENT_HUB_KEY` | The access key linked to your account in Kerberos Hub. | "" | -| `AGENT_HUB_PRIVATE_KEY` | The secret access key linked to your account in Kerberos Hub. | "" | -| `AGENT_HUB_USERNAME` | Your Kerberos Hub username, which owns the above access and secret keys. | "" | -| `AGENT_HUB_SITE` | The site ID of a site you've created in your Kerberos Hub account. | "" | -| `AGENT_KERBEROSVAULT_URI` | The Kerberos Vault API url. | "" | -| `AGENT_KERBEROSVAULT_ACCESS_KEY` | The access key of a Kerberos Vault account. | "" | -| `AGENT_KERBEROSVAULT_SECRET_KEY` | The secret key of a Kerberos Vault account. | "" | -| `AGENT_KERBEROSVAULT_PROVIDER` | A Kerberos Vault provider you have created (optional). | "" | -| `AGENT_KERBEROSVAULT_DIRECTORY` | The directory, in the provider, where the recordings will be stored in. | "" | -| `AGENT_DROPBOX_ACCESS_TOKEN` | The Access Token from your Dropbox app, that is used to leverage the Dropbox SDK. | "" | -| `AGENT_DROPBOX_DIRECTORY` | The directory, in the provider, where the recordings will be stored in. | "" | +| Name | Description | Default Value | +| --------------------------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------ | +| `AGENT_USERNAME` | The username used to authenticate against the Kerberos Agent login page. | "root" | +| `AGENT_PASSWORD` | The password used to authenticate against the Kerberos Agent login page. | "root" | +| `AGENT_KEY` | A unique identifier for your Kerberos Agent, this is auto-generated but can be overriden. | "" | +| `AGENT_NAME` | The agent friendly-name. | "agent" | +| `AGENT_TIMEZONE` | Timezone which is used for converting time. | "Africa/Ceuta" | +| `AGENT_REMOVE_AFTER_UPLOAD` | When enabled, recordings uploaded successfully to a storage will be removed from disk. | "true" | +| `AGENT_OFFLINE` | Makes sure no external connection is made. | "false" | +| `AGENT_AUTO_CLEAN` | Cleans up the recordings directory. | "true" | +| `AGENT_AUTO_CLEAN_MAX_SIZE` | If `AUTO_CLEAN` enabled, set the max size of the recordings directory in (MB). | "100" | +| `AGENT_TIME` | Enable the timetable for Kerberos Agent | "false" | +| `AGENT_TIMETABLE` | A (weekly) time table to specify when to make recordings "start1,end1,start2,end2;start1.. | "" | +| `AGENT_REGION_POLYGON` | A single polygon set for motion detection: "x1,y1;x2,y2;x3,y3;... | "" | +| `AGENT_CAPTURE_IPCAMERA_RTSP` | Full-HD RTSP endpoint to the camera you're targetting. | "" | +| `AGENT_CAPTURE_IPCAMERA_SUB_RTSP` | Sub-stream RTSP endpoint used for livestreaming (WebRTC). | "" | +| `AGENT_CAPTURE_IPCAMERA_ONVIF` | Mark as a compliant ONVIF device. | "" | +| `AGENT_CAPTURE_IPCAMERA_ONVIF_XADDR` | ONVIF endpoint/address running on the camera. | "" | +| `AGENT_CAPTURE_IPCAMERA_ONVIF_USERNAME` | ONVIF username to authenticate against. | "" | +| `AGENT_CAPTURE_IPCAMERA_ONVIF_PASSWORD` | ONVIF password to authenticate against. | "" | +| `AGENT_CAPTURE_RECORDING` | Toggle for enabling making recordings. | "true" | +| `AGENT_CAPTURE_CONTINUOUS` | Toggle for enabling continuous or motion based recording. | "false" | +| `AGENT_CAPTURE_PRERECORDING` | If `CONTINUOUS` set to `false`, specify the recording time (seconds) before after motion event. | "10" | +| `AGENT_CAPTURE_POSTRECORDING` | If `CONTINUOUS` set to `false`, specify the recording time (seconds) after motion event. | "20" | +| `AGENT_CAPTURE_MAXLENGTH` | The maximum length of a single recording (seconds). | "30" | +| `AGENT_CAPTURE_PIXEL_CHANGE` | If `CONTINUOUS` set to `false`, the number of pixel require to change before motion triggers. | "150" | +| `AGENT_CAPTURE_FRAGMENTED` | Set the format of the recorded MP4 to fragmented (suitable for HLS). | "false" | +| `AGENT_CAPTURE_FRAGMENTED_DURATION` | If `AGENT_CAPTURE_FRAGMENTED` set to `true`, define the duration (seconds) of a fragment. | "8" | +| `AGENT_MQTT_URI` | A MQTT broker endpoint that is used for bi-directional communication (live view, onvif, etc) | "tcp://mqtt.kerberos.io:1883" | +| `AGENT_MQTT_USERNAME` | Username of the MQTT broker. | "" | +| `AGENT_MQTT_PASSWORD` | Password of the MQTT broker. | "" | +| `AGENT_STUN_URI` | When using WebRTC, you'll need to provide a STUN server. | "stun:turn.kerberos.io:8443" | +| `AGENT_TURN_URI` | When using WebRTC, you'll need to provide a TURN server. | "turn:turn.kerberos.io:8443" | +| `AGENT_TURN_USERNAME` | TURN username used for WebRTC. | "username1" | +| `AGENT_TURN_PASSWORD` | TURN password used for WebRTC. | "password1" | +| `AGENT_CLOUD` | Store recordings in Kerberos Hub (s3), Kerberos Vault (kstorage) or Dropbox (dropbox). | "s3" | +| `AGENT_HUB_URI` | The Kerberos Hub API, defaults to our Kerberos Hub SAAS. | "https://api.hub.domain.com" | +| `AGENT_HUB_KEY` | The access key linked to your account in Kerberos Hub. | "" | +| `AGENT_HUB_PRIVATE_KEY` | The secret access key linked to your account in Kerberos Hub. | "" | +| `AGENT_HUB_USERNAME` | Your Kerberos Hub username, which owns the above access and secret keys. | "" | +| `AGENT_HUB_SITE` | The site ID of a site you've created in your Kerberos Hub account. | "" | +| `AGENT_KERBEROSVAULT_URI` | The Kerberos Vault API url. | "https://vault.domain.com/api" | +| `AGENT_KERBEROSVAULT_ACCESS_KEY` | The access key of a Kerberos Vault account. | "" | +| `AGENT_KERBEROSVAULT_SECRET_KEY` | The secret key of a Kerberos Vault account. | "" | +| `AGENT_KERBEROSVAULT_PROVIDER` | A Kerberos Vault provider you have created (optional). | "" | +| `AGENT_KERBEROSVAULT_DIRECTORY` | The directory, in the provider, where the recordings will be stored in. | "" | +| `AGENT_DROPBOX_ACCESS_TOKEN` | The Access Token from your Dropbox app, that is used to leverage the Dropbox SDK. | "" | +| `AGENT_DROPBOX_DIRECTORY` | The directory, in the provider, where the recordings will be stored in. | "" | ## Contribute with Codespaces diff --git a/ui/public/assets/env.js b/ui/public/assets/env.js deleted file mode 100644 index e0a92fcf..00000000 --- a/ui/public/assets/env.js +++ /dev/null @@ -1,5 +0,0 @@ -(function (window) { - window['env'] = window['env'] || {}; - // Environment variables - window['env']['apiUrl'] = 'http://api.factory.kerberos.io'; -})(this); diff --git a/ui/public/assets/env.template.js b/ui/public/assets/env.template.js deleted file mode 100644 index c1335e7c..00000000 --- a/ui/public/assets/env.template.js +++ /dev/null @@ -1,5 +0,0 @@ -(function (window) { - window['env'] = window['env'] || {}; - // Environment variables - window['env']['apiUrl'] = '${FACTORY_API_URL}'; -})(this);