-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
37 lines (31 loc) · 1.09 KB
/
Copy path.env.example
File metadata and controls
37 lines (31 loc) · 1.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
# Postgres (matches docker-compose.yml defaults)
DATABASE_URL=postgresql://ghostapi:ghostapi@localhost:5433/ghostapi
# Redis
REDIS_URL=redis://localhost:6379
# Frontend → backend
# apps/web (public Next.js site) reads NEXT_PUBLIC_API_URL.
# apps/web also reads NEXT_PUBLIC_APP_URL to route public CTAs into apps/app.
# apps/app (protected React SPA) reads VITE_API_URL — also see apps/app/.env.example.
NEXT_PUBLIC_API_URL=http://localhost:3001
NEXT_PUBLIC_APP_URL=http://localhost:3002
VITE_API_URL=http://localhost:3001
VITE_APP_NAME=GhostAPI
APP_URL=http://localhost:3002
# Backend
PORT=3001
LOG_LEVEL=info
NODE_ENV=development
CORS_ORIGINS=http://localhost:3000,http://localhost:3002
# Auth — replace in non-dev environments. Must be at least 32 chars.
JWT_SECRET=change-me-change-me-change-me-change-me
# Email verification (Resend). MAIL_PASSWORD is the Resend API key.
MAIL_USERNAME=resend
MAIL_PASSWORD=
MAIL_FROM=noreply@elhamullah.dev
# R2 (Cloudflare R2)
R2_ACCOUNT_ID=
R2_ACCESS_KEY_ID=
R2_SECRET_ACCESS_KEY=
R2_BUCKET=ghostapi
R2_REGION=auto
R2_ENDPOINT_URL=https://key.r2.cloudflarestorage.com