-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
76 lines (63 loc) · 3.08 KB
/
.env.example
File metadata and controls
76 lines (63 loc) · 3.08 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
67
68
69
70
71
72
73
74
75
76
# Supabase Configuration
# Get these values from your Supabase project settings
# https://app.supabase.com/project/_/settings/api
NEXT_PUBLIC_SUPABASE_URL=https://your-project-id.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key-here
# Optional: Add service role key for admin operations (keep this secret!)
# SUPABASE_SERVICE_ROLE_KEY=your_service_role_key_here
# AI Moderation Configuration
# At least one of these should be configured for content moderation
# OpenAI Moderation API (Recommended - more comprehensive)
# Get your API key from https://platform.openai.com/api-keys
OPENAI_API_KEY=sk-your-openai-api-key-here
# Perspective API (Optional fallback - Google's comment analyzer)
# Request access at https://perspectiveapi.com/
# PERSPECTIVE_API_KEY=your-perspective-api-key-here
# Future: Plagiarism Detection APIs
# Uncomment and configure when implementing plagiarism detection
# COPYSCAPE_API_KEY=your-copyscape-api-key
# TURNITIN_API_KEY=your-turnitin-api-key
# Feature Flags (enable modules incrementally)
NEXT_PUBLIC_FEATURE_LOCALIZATION=false
NEXT_PUBLIC_FEATURE_FORUM_QA=false
NEXT_PUBLIC_FEATURE_AI_PLAGIARISM=false
NEXT_PUBLIC_FEATURE_PRIVATE_GROUPS=false
NEXT_PUBLIC_FEATURE_CONTENT_VERSIONING=false
# Site Mode
# Set to 'coming-soon' to redirect all routes to the Coming Soon page
# Set to 'live' (or remove) when ready to launch
# SYRIAHUB_MODE=coming-soon
SYRIAHUB_MODE=live
# Email Service Configuration
# Used by lib/email.ts for notifications
# Resend (RECOMMENDED - better deliverability for Hotmail/Outlook)
# Get your API key from: https://resend.com/api-keys
RESEND_API_KEY=re_your_api_key_here
RESEND_FROM_EMAIL=admin@pluragate.org
# SMTP Fallback (used if RESEND_API_KEY is not set)
SMTP_USER=your-email@gmail.com
SMTP_PASSWORD=your-app-password-here
USE_EDGE_FUNCTIONS=false # Set to true in production to use Supabase Edge Functions
NEXT_PUBLIC_SITE_URL=https://syriahub.org
# Upstash Redis (for rate limiting in production)
# Get keys from: https://console.upstash.com/
# REQUIRED for production — falls back to in-memory (ineffective on serverless)
UPSTASH_REDIS_REST_URL=https://your-region.upstash.io
UPSTASH_REDIS_REST_TOKEN=your_upstash_rest_token_here
# Cloudflare Turnstile CAPTCHA
# Get keys from: https://dash.cloudflare.com/?to=/:account/turnstile
# For development/testing, use these test keys (always pass):
NEXT_PUBLIC_TURNSTILE_SITE_KEY=1x00000000000000000000AA
TURNSTILE_SECRET_KEY=1x0000000000000000000000000000000AA
#NEXT_PUBLIC_TURNSTILE_SITE_KEY=0x4AAAAAACH4Qzq_t2gzvIq_
#TURNSTILE_SECRET_KEY=0x4AAAAAACH4Q6Rq42MPgK5f-ZXoBIDS8pY
# Sentry Error & Performance Monitoring
# Get your DSN from https://sentry.io/settings/projects/{project}/keys/
# Leave empty to disable Sentry (graceful fallback)
NEXT_PUBLIC_SENTRY_DSN=https://your-dsn@sentry.io/your-project
SENTRY_DSN=https://your-dsn@sentry.io/your-project
# Optional: For source map uploads (recommended for production debugging)
# Create at: https://sentry.io/settings/account/api/auth-tokens/
# SENTRY_AUTH_TOKEN=your-sentry-auth-token-here
# SENTRY_ORG=your-sentry-org-slug
# SENTRY_PROJECT=your-sentry-project-slug