# Synapsis local development environment
# Copy to .env and adjust values for your machine.

# Required: local database
# Embedded Turso database file. Relative paths resolve from the app directory.
DATABASE_PATH=./data/synapsis.db

# Synapsis' standard local bind port. Override it if this port is already in use.
PORT=43821

# Required: used for sessions, node key encryption, and bot API key encryption
AUTH_SECRET=replace-with-a-long-random-secret
E2EE_RECOVERY_SECRET=replace-with-a-separate-long-random-secret

# Required for admin access. Register with one of these emails locally.
ADMIN_EMAILS=admin@example.com

# Recommended: local node identity
NEXT_PUBLIC_NODE_DOMAIN=localhost:43821
NEXT_PUBLIC_APP_URL=http://localhost:43821

# Recommended: Stuffbox instance offered as the default user-owned media provider.
# Synapsis registers its callback automatically; no Stuffbox client ID is required.
STUFFBOX_URL=https://stuffbox.xyz

# Optional: node metadata shown before a node record exists in the database
# NEXT_PUBLIC_NODE_NAME=Synapsis Local
# NEXT_PUBLIC_NODE_DESCRIPTION=Local development node
# NEXT_PUBLIC_ACCENT_COLOR=#FFFFFF

# Optional: bot limits
# BOT_MAX_PER_USER=5
