Files

50 lines
2.3 KiB
Bash

# Copy to .env and fill in. Only HF_TOKEN is required to get started.
#
# cp .env.example .env
# ---- required ---------------------------------------------------------------
# HuggingFace token with access to facebook/sam3. The weights are gated and
# approval is manual, so request access before the first auto-annotation job:
# https://huggingface.co/facebook/sam3
HF_TOKEN=
# ---- host paths -------------------------------------------------------------
# Where your recordings live, laid out as <date>/<batch>.mp4. Mounted read-write
# into the container; written only by user-initiated upload / date-folder
# creation (REQ-178), nothing else.
# Relative is recommended — resolved against the directory you start from
# (./start.sh cds to the repo root), so this file needs no editing when you
# move or clone the project to another machine. Absolute paths also work.
VIDEO_ARCHIVE_HOST=./data/archive
# Copy-path buttons (REQ-179): the Linux button always works from the path
# above; the Windows button (\\wsl.localhost\<distro>\...) needs the WSL distro
# name. Under WSL the shell already exports WSL_DISTRO_NAME and compose picks
# it up automatically — delete this line there (redundant, kept only as a
# fallback if your compose run somehow loses the variable).
# On a native Linux machine DELETE or leave this commented out: there is no
# WSL, and naming a distro would fabricate a bogus Windows path — the button
# then simply stays hidden, which is correct.
# WSL_DISTRO_NAME=Ubuntu
# ---- ports ------------------------------------------------------------------
# The Web Studio UI port (default: 9000) and Backend API port (default: 9010).
WEB_PORT=9000
API_PORT=9010
# Origins allowed to call the API. Add your machine's LAN address to reach the
# dev server from another device.
CORS_ORIGINS=http://localhost:5173,http://localhost:9000,http://localhost:9010,http://localhost:8080,http://localhost:8000
# ---- recorder (algoritma-batch/batch_video_cropper.py) -----------------------
# Only needed if you run the 24/7 truck-session recorder. It reads the RTSP
# stream to detect sessions, then downloads each session from the recording
# server as a copy rather than re-encoding it.
# MediaMTX playback endpoint and the path name to pull from.
PLAYBACK_URL=http://192.168.192.96:9996/get
PLAYBACK_PATH=cam