myagent10101's picture
feat: Complete CodeSync collaborative coding platform
8f9c4ef verified
# ═══════════════════════════════════════════════════════════════
# CodeSync β€” Environment Variables
# Copy to .env and fill in your values
# ═══════════════════════════════════════════════════════════════
# ─── Server ────────────────────────────────────────────────────
NODE_ENV=development
PORT=4000
CLIENT_URL=http://localhost:3000
# ─── Database (PostgreSQL) ─────────────────────────────────────
DATABASE_URL=postgresql://codesync:codesync@localhost:5432/codesync
# ─── Redis (Upstash) ──────────────────────────────────────────
# Get these from https://console.upstash.com
UPSTASH_REDIS_URL=https://your-redis.upstash.io
UPSTASH_REDIS_TOKEN=your-upstash-token
# ─── JWT Secrets ──────────────────────────────────────────────
# Generate with: openssl rand -base64 64
JWT_ACCESS_SECRET=your-access-secret-min-32-chars
JWT_REFRESH_SECRET=your-refresh-secret-min-32-chars
JWT_ACCESS_EXPIRY=15m
JWT_REFRESH_EXPIRY=7d
# ─── Google OAuth (optional) ──────────────────────────────────
# Get from https://console.cloud.google.com/apis/credentials
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
GOOGLE_CALLBACK_URL=http://localhost:4000/api/auth/google/callback
# ─── AI (OpenRouter) ─────────────────────────────────────────
# Get from https://openrouter.ai/keys
OPENROUTER_API_KEY=your-openrouter-api-key
AI_MODEL=google/gemini-pro
# ─── Docker ───────────────────────────────────────────────────
DOCKER_SOCKET=/var/run/docker.sock
DOCKER_NETWORK=codesync-sandbox