GitLog AI

Manual Setup Guide

Complete steps to configure GitLog AI for production environments.

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 deploy

3. GitHub OAuth App

  1. Go to GitHub Developer Settings
  2. Click New OAuth App
  3. Set Homepage URL to https://your-domain.com
  4. Set Callback URL to https://your-domain.com/api/auth/callback/github