-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
38 lines (35 loc) · 2.26 KB
/
.env.example
File metadata and controls
38 lines (35 loc) · 2.26 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
# ─────────────────────────────────────────────────────────────
# KillNode Website — environment variables
# Copy to .env (local) or paste into Vercel › Project › Settings › Environment Variables.
# ─────────────────────────────────────────────────────────────
# ── Database (PostgreSQL) ─────────────────────────────────────
#
# Neon (recommended for Vercel) provides two URLs per project.
# Find them in your Neon dashboard → Connection Details:
# DATABASE_URL = Pooled connection (pgBouncer) — used by the Next.js app at runtime
# DIRECT_URL = Direct connection — used by Prisma for migrations
#
# If you are using a plain Postgres instance (e.g. local Docker, Railway, Supabase)
# that does NOT use a connection pooler, set both to the same connection string.
#
# Neon format:
# Pooled: postgresql://user:pass@ep-xxx.region.aws.neon.tech/dbname?sslmode=require
# Direct: postgresql://user:pass@ep-xxx.region.aws.neon.tech/dbname?sslmode=require
#
# Local Docker (optional):
# docker run -d --name kn-pg \
# -e POSTGRES_USER=killnode -e POSTGRES_PASSWORD=killnode -e POSTGRES_DB=killnode \
# -p 5432:5432 postgres:16
DATABASE_URL="postgresql://USER:PASSWORD@HOST.neon.tech/killnode?sslmode=require"
DIRECT_URL="postgresql://USER:PASSWORD@HOST-direct.neon.tech/killnode?sslmode=require"
# ── Admin session ─────────────────────────────────────────────
# ADMIN_SESSION_SECRET must be ≥16 chars.
# Generate a safe secret: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
ADMIN_USERNAME="admin"
ADMIN_PASSWORD="killnode2026"
ADMIN_SESSION_SECRET="change-me-minimum-sixteen-chars"
# ── GitHub Releases API (landing download matrix) ─────────────
# Without GITHUB_TOKEN the endpoint is rate-limited to 60 req/hr per IP.
GITHUB_REPO_OWNER="Alaustrup"
GITHUB_REPO_NAME="killnode"
GITHUB_TOKEN=""