-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
66 lines (59 loc) · 3.09 KB
/
.env.example
File metadata and controls
66 lines (59 loc) · 3.09 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
# =============================================================================
# GitPins - Environment Variables Template
# =============================================================================
# Copy this file to .env and fill in your values
# NEVER commit .env to version control!
# =============================================================================
# DATABASE (Required)
# =============================================================================
# PostgreSQL connection string from Vercel Postgres, Neon, Supabase, etc.
DATABASE_URL="postgresql://user:password@host:5432/database?sslmode=require"
# Direct connection URL (for migrations, same as DATABASE_URL for most providers)
DIRECT_URL="postgresql://user:password@host:5432/database?sslmode=require"
# =============================================================================
# GITHUB APP (Required)
# =============================================================================
# Create a GitHub App at: https://github.com/settings/apps/new
# Homepage URL: https://your-domain.com (IMPORTANT: Must match your app URL)
# Callback URL: https://your-domain.com/api/auth/callback
# Setup URL: https://your-domain.com/api/auth/setup
# Permissions needed:
# - Repository: Contents (Read & Write)
# - Repository: Metadata (Read)
# - Account: Email addresses (Read)
GITHUB_APP_ID="your_app_id"
GITHUB_APP_SLUG="gitpins"
GITHUB_APP_CLIENT_ID="your_client_id"
GITHUB_APP_CLIENT_SECRET="your_client_secret"
# The private key should be the full PEM content (with newlines)
# In Vercel, you can paste the entire key including -----BEGIN/END-----
GITHUB_APP_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----
your_private_key_content_here
-----END RSA PRIVATE KEY-----"
# =============================================================================
# APPLICATION (Required)
# =============================================================================
# Your application URL (no trailing slash)
# Local: http://localhost:3000
# Production: https://gitpins.com or https://your-app.vercel.app
NEXT_PUBLIC_APP_URL="https://your-domain.com"
# =============================================================================
# SECURITY (Required)
# =============================================================================
# Generate these with: openssl rand -base64 32
# IMPORTANT: Use different values for production!
JWT_SECRET="generate_with_openssl_rand_base64_32"
ENCRYPTION_SECRET="generate_with_openssl_rand_base64_32"
# =============================================================================
# ADMIN (Optional)
# =============================================================================
# Temporary fallback while migrating to DB-based admin allowlist
# Primary admin source is now admin_accounts table
# =============================================================================
# LOCAL SAFETY (Optional)
# =============================================================================
# Safety flag: disable GitHub write operations (sync/cleanup).
# Recommended:
# - Local development: "true"
# - Production: "false"
GITPINS_DISABLE_GITHUB_MUTATIONS="true"