# Pinnex Tally Bridge — environment configuration
# Place this file next to pinnex-bridge.exe (the installer creates it for you).

# REQUIRED — license key issued by Ravya
LICENSE_KEY=your-license-key-here

# License verification endpoint (defaults to Pinnex Mac mini tracker).
# Legacy api.pinnex.in (AWS Lambda) is decommissioned 2026-07. Override
# only if Ravya gives you a different URL (e.g. staging).
LICENSE_API_URL=https://app.pinnexaccounting.com/api/bridge/license/verify

# REQUIRED — firm short code (e.g. NSQ)
FIRM_CODE=NSQ

# OPTIONAL (v0.3.5) — leave blank/omit to serve ALL companies open in Tally.
# One company open = auto-detected. Several open = each request names its
# company (tally_company). Set a value only to pin a permanent default.
TALLY_COMPANY=

# Tally Prime ODBC server (defaults shown)
TALLY_HOST=localhost
TALLY_PORT=9000

# Bridge HTTP API binding
# Default 0.0.0.0 so Ravya's tracker can reach this PC via Tailscale.
# License-key bearer auth is enforced on every /sync endpoint.
BRIDGE_HOST=0.0.0.0
# Default 9888 (v0.3.1+). v0.3.0 used 9876, which collides with Windows
# iphlpsvc (IP Helper Service) on some boxes -> EADDRINUSE. Pick any free
# port if 9888 is also taken on your machine.
BRIDGE_PORT=9888

# Log directory (created if missing)
LOG_DIR=C:\ProgramData\Pinnex Bridge\log
