Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
54 lines (49 loc) · 2.48 KB
/
Copy path.env.example
File metadata and controls
54 lines (49 loc) · 2.48 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
# Application
NODE_ENV=development
PORT=3005
HOST=0.0.0.0
# Optional: overrides whether auth cookies are marked `Secure` (defaults to NODE_ENV === 'production').
# Set to 'false' when running the production Docker image locally over plain HTTP.
# SECURE_COOKIES=true
# Optional per-IP request limits. Unset means the production values: 100 a minute overall, 10 sign-in
# attempts a minute, 10 demo accounts an hour. docker-compose.yml raises all three for local E2E runs.
# RATE_LIMIT_PER_MINUTE=100
# AUTH_RATE_LIMIT_PER_MINUTE=10
# DEMO_RATE_LIMIT_PER_HOUR=10
# CORS (React/Vite frontend origin)
CORS_ORIGIN=http://localhost:4205
# PostgreSQL (used by docker-compose and Prisma)
POSTGRES_USER=cygnus_user
POSTGRES_PASSWORD=your_postgres_password_here
POSTGRES_DB=cygnus_db
POSTGRES_PORT=5433
DATABASE_URL=postgresql://cygnus_user:your_postgres_password_here@localhost:5433/cygnus_db?schema=public
# Optional. A direct (non-pooled) connection for the Prisma CLI only, so
# `migrate deploy` can hold and release its advisory lock. Leave unset locally;
# in production it is Neon's host without `-pooler`. See prisma.config.ts.
# In production: `sslmode=verify-full` on DATABASE_URL, `sslmode=require` on this one. The Prisma CLI
# does not honour `verify-full` and would fall back to an unencrypted connection.
# DIRECT_DATABASE_URL=
# Redis
REDIS_PASSWORD=your_redis_password_here
REDIS_PORT=6379
REDIS_URL=redis://:your_redis_password_here@localhost:6379
# JWT (must be at least 32 characters long — generate with `openssl rand -hex 32`)
JWT_ACCESS_SECRET=your_jwt_access_secret_here_min_32_characters
JWT_REFRESH_SECRET=your_jwt_refresh_secret_here_min_32_characters
JWT_ACCESS_EXPIRES_IN=15m
JWT_REFRESH_EXPIRES_IN=7d
# Resend (transactional email — guardian invites, later reminder emails). Optional: EmailService
# no-ops with a warning log when unset, so local dev/CI works without a real account.
#
# onboarding@resend.dev is Resend's own sandbox sender, and it is not merely a weaker production
# sender: it delivers ONLY to the address that owns the Resend account. A guardian invite to
# anyone else is accepted by the API, returns no error, and never arrives — which is the whole
# use case failing silently. Anything real needs a `from` on a domain verified in the Resend
# dashboard; production uses samuelsantana.dev.
RESEND_API_KEY=
RESEND_FROM_EMAIL=Cygnus <onboarding@resend.dev>
## Google OAuth web client (optional; configure all three together).
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REDIRECT_URI=