-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.env.example
More file actions
89 lines (70 loc) · 3.59 KB
/
Copy path.env.example
File metadata and controls
89 lines (70 loc) · 3.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# =============================================================================
# GitHub.gg Local Development Environment
# =============================================================================
# Database Configuration (auto-configured by Docker)
DATABASE_URL="postgresql://github_gg_user:github_gg_password@localhost:5432/github_gg"
# Authentication (generate a random 32-character string)
BETTER_AUTH_SECRET="dev-secret-key-for-local-development-only"
# API Key Encryption (generate a random 32-character string)
API_KEY_ENCRYPTION_SECRET="dev-encryption-key-for-local-development-only"
# GitHub OAuth App Configuration
# Create a GitHub OAuth App at: https://github.com/settings/developers
# Homepage URL: http://localhost:3000
# Authorization callback URL: http://localhost:3000/api/auth/callback/github
GITHUB_CLIENT_ID="your-github-oauth-client-id"
GITHUB_CLIENT_SECRET="your-github-oauth-client-secret"
# App URL Configuration
NEXT_PUBLIC_APP_URL="http://localhost:3000"
# Optional: GitHub API for unauthenticated requests
# GITHUB_PUBLIC_API_KEY="your-github-personal-access-token"
# Optional: AI Features (Google Gemini)
# GEMINI_API_KEY="your-gemini-api-key"
# Optional: Payment Integration (Stripe)
# STRIPE_SECRET_KEY="sk_test_your_stripe_secret_key"
# STRIPE_WEBHOOK_SECRET="whsec_your_stripe_webhook_secret"
# STRIPE_BYOK_PRICE_ID="price_your_byok_plan_id"
# STRIPE_PRO_PRICE_ID="price_your_pro_plan_id"
# NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="pk_test_your_stripe_publishable_key"
# Optional: Analytics (PostHog)
# NEXT_PUBLIC_POSTHOG_KEY="your_posthog_key"
# NEXT_PUBLIC_POSTHOG_HOST="https://eu.i.posthog.com"
# Development Mode
NODE_ENV="development"
DEBUG="false"
# Development Authentication (enables JWT-based auth instead of GitHub OAuth)
# Set to "false" to use GitHub OAuth in development
NEXT_PUBLIC_USE_DEV_AUTH="true"
# =============================================================================
# Dev Environment System Configuration
# =============================================================================
# Dev Environment Email Configuration (uses Resend, same as github.gg platform)
DEV_ENV_FROM_EMAIL="devenv@github.gg"
# OVH Cloud Configuration
# For manual OVH API access (optional if using Terraform)
OVH_ENDPOINT="ovh-eu"
OVH_APPLICATION_KEY="your-ovh-application-key"
OVH_APPLICATION_SECRET="your-ovh-application-secret"
OVH_CONSUMER_KEY="your-ovh-consumer-key"
OVH_PROJECT_ID="your-ovh-project-id"
OVH_SSH_PUBLIC_KEY="your-ssh-public-key"
# VM encryption key for storing sensitive data (must be 32 bytes)
VM_ENCRYPTION_KEY="your-32-byte-encryption-key-here!!"
# Application server IP for security groups (restrict SSH access)
APP_SERVER_IP="your-app-server-public-ip"
# VM Provider Selection
# Use "docker" for local development (lightweight containers)
# Use "ovh" for production (real cloud instances)
VM_PROVIDER="docker"
# Terraform Cloud Configuration (for automated infrastructure provisioning)
TERRAFORM_TOKEN="your-terraform-cloud-token"
TERRAFORM_ORGANIZATION="your-terraform-org"
TERRAFORM_WORKSPACE_ID="your-workspace-id"
# =============================================================================
# Webhook Queue (BullMQ + ioredis)
# =============================================================================
# Required by the webhook worker (src/workers/webhook-worker.ts) AND the
# request path at /api/webhooks/github. This must be an ioredis-compatible
# TCP URL (e.g. the REDIS_URL exposed by Vercel KV) — NOT the Upstash REST URL
# in UPSTASH_REDIS_REST_URL, which is incompatible with BullMQ.
# See WORKER_DEPLOYMENT.md for context.
REDIS_URL="redis://default:password@host:6379"