# Intacct API Usage - Environment Variables
# These settings are used for local development

# Directory paths (Windows format)
DATA_DIR=data
LOG_DIR=logs

# Server configuration
PORT=5050
NODE_ENV=production

# Encryption key for credentials (required)
# Generate a secure random key: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
# For Docker: pass as environment variable -e ENCRYPTION_KEY=your_key_here
ENCRYPTION_KEY=083c20c2429bdb83daa09b2c67566225842a3bd05cf9491fa5c43b28b36acd7c

# Log level: info (default) or debug (verbose)
LOG_LEVEL=info


# When enabled, the /companies/all endpoint returns companies from
# JSON files in the DATA_DIR that contain a "companies" array.

# Local Companies API (for testing)
# Set to true/1 to enable the local /companies endpoints
# By default (if not set), these endpoints are disabled
# Add json file to DATA_DIR folder 
LOCAL_COMPANIES_API_ENABLED=true
# Token required to access the local companies API (optional)
# If set, requests must include Authorization: Bearer <token>
LOCAL_COMPANIES_API_TOKEN=test-token-12345

# Authentication key for the web UI login screen
# If set, users must enter this key to access the application
# If empty or not set, no login is required
AUTH_KEY=670952e8f0a090a98620af68aae26636fedfc6942eb7e11163eedab27484d29a
