mirror of
https://github.com/kerberos-io/agent.git
synced 2026-08-23 15:08:32 +00:00
Enable configurable chunked tus uploads and related robustness changes. - Add AGENT_TUS_CHUNK_SIZE_BYTES env (default 1 MiB, 0 disables chunking) and docs in machinery/.env; ignore machinery/go.work files and set GOWORK=off in VSCode launch to avoid go.work during debugging. - Implement tusChunkSize() and update uploadVaultResumable to send PATCHes in configurable chunk sizes, checkpoint progress after each chunk, and handle partial failures by refreshing retry budget when progress occurs. - Change tusPatch to accept an explicit length and return the advanced offset when a PATCH is fully accepted. - Skip uploads when the recording file no longer exists to avoid infinite retries. - Add tests exercising chunked uploads, chunking-disabled behavior, and tusChunkSize parsing; extend fakeTus test server to record patch sizes. - Reduce noisy info logs to debug in AAC transcoder and WebRTC audio processing. These changes improve resumable upload reliability, allow tuning for proxy/load-balancer limits, and reduce log spam during normal operation.
38 lines
1.4 KiB
Bash
38 lines
1.4 KiB
Bash
AGENT_NAME=camera-name
|
|
AGENT_KEY=uniq-camera-id
|
|
AGENT_TIMEZONE=Europe/Brussels
|
|
#AGENT_CAPTURE_CONTINUOUS=true
|
|
#AGENT_CAPTURE_IPCAMERA_RTSP=rtsp://fake.kerberos.io/stream
|
|
#AGENT_CAPTURE_IPCAMERA_SUB_RTSP=rtsp://fake.kerberos.io/stream
|
|
AGENT_CAPTURE_IPCAMERA_ONVIF_XADDR=x.x.x.x
|
|
AGENT_CAPTURE_IPCAMERA_ONVIF_USERNAME=xxx
|
|
AGENT_CAPTURE_IPCAMERA_ONVIF_PASSWORD=xxx
|
|
AGENT_HUB_URI=https://api.cloud.kerberos.io
|
|
AGENT_HUB_KEY=AKIXxxx4JBEI
|
|
AGENT_HUB_PRIVATE_KEY=DIOXxxxAlYpaxxxxXioL0txxx
|
|
AGENT_HUB_SITE=681xxxxxxx9bcda5
|
|
|
|
# By default will send to Hub (=S3), if you wish to send to Kerberos Vault, set to "kstorage"
|
|
AGENT_CLOUD=s3
|
|
AGENT_KERBEROSVAULT_URI=
|
|
AGENT_KERBEROSVAULT_PROVIDER=
|
|
AGENT_KERBEROSVAULT_DIRECTORY=
|
|
AGENT_KERBEROSVAULT_ACCESS_KEY=
|
|
AGENT_KERBEROSVAULT_SECRET_KEY=
|
|
AGENT_KERBEROSVAULT_MAX_RETRIES=10
|
|
AGENT_KERBEROSVAULT_TIMEOUT=120
|
|
AGENT_KERBEROSVAULT_SECONDARY_URI=
|
|
AGENT_KERBEROSVAULT_SECONDARY_PROVIDER=
|
|
AGENT_KERBEROSVAULT_SECONDARY_DIRECTORY=
|
|
AGENT_KERBEROSVAULT_SECONDARY_ACCESS_KEY=
|
|
AGENT_KERBEROSVAULT_SECONDARY_SECRET_KEY=
|
|
|
|
# Resumable (tus) uploads to Kerberos Vault are enabled by default.
|
|
# Set to true to fall back to the legacy single-shot POST /storage upload.
|
|
#AGENT_DISABLE_RESUMABLE_UPLOAD=false
|
|
# Bytes sent per PATCH request (default 1 MiB = 1048576). 0 disables chunking
|
|
# and sends the whole file in a single PATCH.
|
|
AGENT_TUS_CHUNK_SIZE_BYTES=1048576
|
|
|
|
# Open telemetry tracing endpoint
|
|
OTEL_EXPORTER_OTLP_ENDPOINT= |