# FOXGLOVE_SITE_TOKEN authenticates the edge controller to the API and should
# be obtained from the Foxglove sites UI. Uncomment the next line to set it.
# Leave it commented when SITE_TOKEN is set instead. An empty assignment is
# still set and blocks SITE_TOKEN.
#FOXGLOVE_SITE_TOKEN=

# STORAGE_ROOT is the path from which the edge controller reads recordings.
# Recording paths appear in Foxglove relative to this path. The directory must
# exist. The controller reads it whether or not watch mode is on.
STORAGE_ROOT=/srv/foxglove/edge-controller/storage

# WATCH_MODE enables filesystem discovery. A fresh install turns it on. An
# envfile that omits this line leaves discovery off.
WATCH_MODE=true

# WATCH_INCLUDE_SUFFIXES is a comma-delimited list of file suffixes that should
# be treated as recordings. Setting any WATCH_INCLUDE_* or WATCH_EXCLUDE_*
# option replaces the legacy WATCH_IGNORE_SUFFIX filter. Watch mode indexes
# MCAP files only. ROS 1 bags are cataloged only through the recordings API.
WATCH_INCLUDE_SUFFIXES=.mcap
#WATCH_INCLUDE_REGEX=
#WATCH_EXCLUDE_SUFFIXES=
#WATCH_EXCLUDE_REGEX=

# WATCH_AUTO_IMPORT_PATTERN is a glob matched against each recording's path
# relative to STORAGE_ROOT. In this controller, * matches across '/'. Leave
# commented out to import recordings manually.
#WATCH_AUTO_IMPORT_PATTERN=

# The recordings API is off unless ENABLE_SERVER=true. It listens on
# SERVER_ADDRESS (default 127.0.0.1) and PORT (default 9099). Clients on other
# hosts need both of the following.
#ENABLE_SERVER=true
#SERVER_ADDRESS=0.0.0.0

# FOXGLOVE_LOG_OUTPUT controls how logs are routed. When running under systemd,
# this should typically be "journald". Other options are "json" or "text".
FOXGLOVE_LOG_OUTPUT=journald

# VARDIR must be a read-writable path where the controller stores its catalog.
VARDIR=/var/lib/foxglove/edge-controller

# PRIMARY_SITE_MODE is self-managed or hosted. self-managed is the default and
# requires INBOX_BUCKET_NAME and INBOX_STORAGE_PROVIDER (aws, azure,
# google-cloud, or s3-compatible). The deprecated on-prem spelling means
# self-managed.
PRIMARY_SITE_MODE=self-managed
#INBOX_BUCKET_NAME=
#INBOX_STORAGE_PROVIDER=
