Files
pr-preview/example.env
T
space a71f801c3f feat: initial scaffold - backend, frontend, Prisma schema, Docker
- Prisma schema: User, Session, RepoConfig, Preview, Job, WebhookToken, NoConfigComment, AdminSettings
- Backend: auth (login/logout/me/first-user setup), webhook handler with HMAC verification, EC2 service, SSH service, deploy pipeline, job queue worker, cron workers
- Frontend: Login with first-user detection, Dashboard, PreviewDetail with live log streaming, Settings, Repos config, Admin panel, SetupWizard, Privacy page
- Docker Compose and Dockerfile for self-hosted deployment
- Uses bcryptjs for Node 24 compatibility

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-25 00:18:08 +02:00

22 lines
698 B
Bash

# PP (PR Previews) - Environment Variables
# Copy to .env and fill in values
# PostgreSQL connection string
DATABASE_URL=postgresql://pp:pp_password@localhost:5432/pp
# Session signing secret (at least 32 random chars)
SESSION_SECRET=change_me_to_a_random_32_character_string
# Public URL of this PP instance (no trailing slash)
PP_BASE_URL=https://pp.example.com
# AES-256 encryption key — 64 hex chars (32 bytes)
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
ENCRYPTION_KEY=0000000000000000000000000000000000000000000000000000000000000000
# Backend port (default: 5000)
PORT=5000
# Log level: trace | debug | info | warn | error
LOG_LEVEL=info