# Default settings for the vpp-maglev server package.
# This file is sourced by:
#   /lib/systemd/system/vpp-maglev.service           (maglevd, per-instance daemon)
#   /lib/systemd/system/vpp-maglevr.service          (maglevr, central registry)
#   /lib/systemd/system/vpp-maglevf.service          (maglevf, web dashboard)
# After editing, restart the relevant unit(s):
#   systemctl restart vpp-maglev | vpp-maglevr | vpp-maglevf

# ---- shared ----------------------------------------------------------------

# Path to the scoped YAML config. Both maglevd and maglevr read this file,
# each honoring only its own top-level section (maglevd: / maglevr:). The
# operator-owned copy is seeded once from the shipped example; the full
# annotated reference is /etc/vpp-maglev/vpp-maglev.default.yaml.
MAGLEV_CONFIG=/etc/vpp-maglev/vpp-maglev.yaml

# ---- maglevd (per-instance daemon) ---------------------------------------------

# gRPC listen address (default: :9090; also maglevr's dial-back target)
#MAGLEV_GRPC_ADDR=:9090

# Log level: debug, info, warn, error (default: info)
#MAGLEV_LOG_LEVEL=info

# ---- maglevr (central registry) --------------------------------------------
# maglevr is opt-in (enable on the central host only). It reads MAGLEV_CONFIG
# above plus these optional overrides:
#MAGLEVR_LISTEN=:9095
#MAGLEVR_METRICS=:9096
#MAGLEVR_LOG_LEVEL=info

# ---- maglevf (web dashboard) -----------------------------------------------
# maglevf is installed but not enabled by default. Enable it on the central
# host (next to maglevr) with:
#   systemctl enable --now vpp-maglevf
#
# maglevf is CONFIG-DRIVEN: it reads the maglevf: section of MAGLEV_CONFIG
# above (server = the maglevr address, listen, admin-enabled, state-file).
# The /admin/ surface uses trust-on-first-use — enable it via
# `admin-enabled: true` in the maglevf: scope and set the username/password
# once in the browser on first visit (only the bcrypt hash is stored; no
# password ever lives in this file). See vpp-maglevf(8).
#
# Extra command-line flags, if any, override the config (e.g. a different
# maglevr host without editing the YAML). Usually left empty.
MAGLEV_FRONTEND_ARGS=""
