-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
52 lines (45 loc) · 1.94 KB
/
Copy path.env.example
File metadata and controls
52 lines (45 loc) · 1.94 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
# ─── Database ───
DATABASE_URL="postgresql://user:password@host:5432/dbname?sslmode=require"
# ─── Auth ───
# Generate with: node -e "console.log(require('crypto').randomBytes(64).toString('hex'))"
JWT_SECRET="CHANGE_ME_TO_A_SECURE_RANDOM_STRING"
# Yeni token akışı (2026-04-18):
# - Access token kısa ömürlü (default 15dk), Authorization header
# - Refresh token uzun ömürlü (default 30g), httpOnly secure cookie ('tiq_rt')
# Eski JWT_EXPIRES_IN hala fallback olarak okunuyor — terkedildi.
JWT_ACCESS_EXPIRES_IN="15m"
JWT_REFRESH_EXPIRES_DAYS="30"
# Google OAuth (opsiyonel — `https://console.cloud.google.com/apis/credentials`)
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_CALLBACK_URL=http://localhost:3000/auth/google/callback
# ─── Iyzico Payment ───
IYZICO_API_KEY=your-api-key
IYZICO_SECRET_KEY=your-secret-key
IYZICO_BASE_URL=https://sandbox-api.iyzipay.com
# ─── Email (Resend) ───
# https://resend.com — free tier: 3000 mail/ay
RESEND_API_KEY=
RESEND_FROM="TransitIQ <onboarding@resend.dev>"
# ─── Sentry (Error Tracking) ───
# https://sentry.io — free tier: 5K event/ay, 1 user
# DSN olmazsa Sentry no-op modda çalışır (zarar vermez).
SENTRY_DSN=
# Frontend için aynı DSN'i NEXT_PUBLIC_ prefix'i ile expose et:
NEXT_PUBLIC_SENTRY_DSN=
# Source map upload için (opsiyonel, prod build'de):
SENTRY_ORG=
SENTRY_PROJECT=
SENTRY_AUTH_TOKEN=
# ─── Cloudflare Turnstile (Bot Koruması) ───
# https://dash.cloudflare.com/?to=/:account/turnstile → Site ekle (Managed/Non-interactive/Invisible)
# Free tier: 1M doğrulama/ay platform genelinde, sınırsız site
# Anahtarlar yokken backend no-op (dev mode), frontend widget render etmez
TURNSTILE_SECRET_KEY=
NEXT_PUBLIC_TURNSTILE_SITE_KEY=
# ─── App ───
NODE_ENV=development
PORT=3000
FRONTEND_URL=http://localhost:3001
BACKEND_URL=http://localhost:3000
ALLOWED_ORIGINS=http://localhost:3001,http://localhost:3002