# =================================== # SkillsHub Local Development Setup # =================================== # Copy this file to .env: cp .env.example .env # Most defaults work out of the box with Docker Compose. # Database (works with docker compose up) DATABASE_URL=postgresql://skillshub:skillshub@localhost:5432/skillshub # Session (generate your own: openssl rand -base64 32) SESSION_SECRET=local-dev-secret-change-in-production # Auth.js NEXTAUTH_SECRET=local-dev-secret-change-in-production NEXTAUTH_URL=http://localhost:3000 AUTH_TRUST_HOST=true # GitHub OAuth (optional — only needed for GitHub login) # Create at: https://github.com/settings/developers # Callback URL: http://localhost:3000/api/auth/callback/github GITHUB_CLIENT_ID= GITHUB_CLIENT_SECRET= # Google OAuth (optional — only needed for Google login) # Create at: https://console.cloud.google.com/apis/credentials # Callback URL: http://localhost:3000/api/auth/callback/google GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= # Resend (optional — only needed for email magic link login) # Get key at: https://resend.com RESEND_API_KEY= # Upstash Redis (optional — rate limiting disabled without this) # Create at: https://console.upstash.com UPSTASH_REDIS_REST_URL= UPSTASH_REDIS_REST_TOKEN= # Encryption key for GitHub token storage (optional, 64 hex chars) # Generate: openssl rand -hex 32 ENCRYPTION_KEY= # App URL NEXT_PUBLIC_APP_URL=http://localhost:3000 # GitHub token for skill imports (optional — higher rate limits) # GITHUB_TOKEN=ghp_...