# Server
PORT=3005
NODE_ENV=development

# Redis/Valkey
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=

# PocketBase
POCKETBASE_URL=https://pocketbase.ccllc.pro
POCKETBASE_ADMIN_EMAIL=
POCKETBASE_ADMIN_PASSWORD=

# Microsoft OAuth
MICROSOFT_CLIENT_ID=
MICROSOFT_CLIENT_SECRET=
MICROSOFT_TENANT=common
MICROSOFT_REDIRECT_URI=http://localhost:3005/api/auth/callback

# Microsoft Graph API Token (for server-side file caching)
# This token is used by the backend to pre-cache SharePoint files
# Note: Graph tokens expire after ~60 minutes and need manual refresh
GRAPH_TOKEN=

# Logging
LOG_LEVEL=info
LOG_FILE=logs/app.log
ERROR_LOG_FILE=logs/error.log

# Token Settings
TOKEN_REFRESH_INTERVAL_MS=1800000
TOKEN_EXPIRY_BUFFER_MS=900000
