Manual Setup Guide
Complete steps to configure GitLog AI for production environments.
Prerequisites
Ensure you have Node.js 18+ and a PostgreSQL database ready.
1. Environment Variables
Create a .env file in the root directory.
bash
# Database
DATABASE_URL="postgresql://user:password@host:5432/gitlog"
DIRECT_URL="postgresql://user:password@host:5432/gitlog"
# Auth
NEXTAUTH_SECRET="your-32-character-random-string"
NEXTAUTH_URL="https://gitlog.ai"
# GitHub OAuth
GITHUB_CLIENT_ID="your-github-oauth-app-client-id"
GITHUB_CLIENT_SECRET="your-github-oauth-app-secret"
# LLM (OpenRouter)
OPENROUTER_API_KEY="sk-or-v1-xxxx"2. Database Setup
Run Prisma migrations to set up your schema:
bash
npx prisma migrate deploy3. GitHub OAuth App
- Go to GitHub Developer Settings
- Click New OAuth App
- Set Homepage URL to
https://your-domain.com - Set Callback URL to
https://your-domain.com/api/auth/callback/github