# SkillHub Environment Configuration
# Copy this file to .env and update the values

# =====================
# Database Configuration
# =====================
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/skillhub
POSTGRES_PASSWORD=postgres

# =====================
# Redis Configuration
# =====================
REDIS_URL=redis://localhost:6379

# =====================
# GitHub API
# =====================
# Create a GitHub Personal Access Token with 'public_repo' scope
# https://github.com/settings/tokens
GITHUB_TOKEN=

# GitHub OAuth (for user authentication)
GITHUB_CLIENT_ID=
GITHUB_CLIENT_SECRET=

# =====================
# Meilisearch
# =====================
MEILI_URL=http://localhost:7700
MEILI_MASTER_KEY=skillhub-dev-key
MEILI_ENV=development

# =====================
# Application
# =====================
NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXT_PUBLIC_API_URL=http://localhost:3000/api
NODE_ENV=development

# =====================
# Indexer Configuration
# =====================
INDEXER_CONCURRENCY=5
INDEXER_MIN_STARS=2

# =====================
# Sentry Error Monitoring
# =====================
# Get your DSN from https://sentry.io
NEXT_PUBLIC_SENTRY_DSN=
# Optional: Auth token for source map uploads
SENTRY_AUTH_TOKEN=
SENTRY_ORG=
SENTRY_PROJECT=
# Optional: Release version tracking
NEXT_PUBLIC_SENTRY_RELEASE=

# =====================
# Authentication
# =====================
# Generate a secure secret: openssl rand -base64 32
AUTH_SECRET=
AUTH_URL=http://localhost:3000

# =====================
# Multiple GitHub Tokens (for higher rate limits)
# =====================
# Comma-separated tokens for distributed API access
GITHUB_TOKENS=
GITHUB_TOKEN_NAMES=

# =====================
# Admin Users
# =====================
# Comma-separated GitHub usernames that get admin privileges on login
ADMIN_GITHUB_USERS=


# =====================
# Email (Resend)
# =====================
# Get your API key from https://resend.com
RESEND_API_KEY=
# From address (must be verified domain in Resend)
RESEND_FROM_EMAIL=
