Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
102 lines (88 loc) · 2.74 KB
/
Copy path.env.example
File metadata and controls
102 lines (88 loc) · 2.74 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# ========================================
# RATE PLATFORM - SHARED ENVIRONMENT VARIABLES
# ========================================
# Copy this file to .env and fill in your values
# This file contains shared configs used by multiple apps/packages
# ========================================
# DATABASE
# ========================================
DATABASE_URL=postgresql://joy:password@localhost:5432/rate
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_NAME=rate
DATABASE_USERNAME=joy
DATABASE_PASSWORD=password
# ========================================
# REDIS
# ========================================
REDIS_HOST=localhost
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_DB=0
# ========================================
# AI SERVICE (Provider-Agnostic: OpenAI / DOS-AI / Gemini / DeepSeek / Groq / OpenRouter / Ollama)
# ========================================
# Options: openai | dos-ai | gemini | deepseek | groq | openrouter | ollama
AI_PROVIDER=openai
AI_API_KEY=sk-proj-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Optional custom OpenAI-compatible endpoint (e.g. https://api.dos.me/v1 or http://localhost:11434/v1)
AI_BASE_URL=
AI_MODEL=gpt-4o-mini
# Legacy OpenAI variables (also supported as fallback)
OPENAI_API_KEY=sk-proj-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
OPENAI_MODEL=gpt-4o-mini
OPENAI_TEMPERATURE=0.3
OPENAI_MAX_TOKENS=2000
# AI Cache Settings
AI_CACHE_ENABLED=true
AI_CACHE_TTL=3600
AI_CACHE_KEY_PREFIX=ai:analysis:
# AI Rate Limiting
AI_RATE_LIMIT_PER_MINUTE=100
AI_RATE_LIMIT_PER_HOUR=1000
# ========================================
# AWS S3 (for Strapi uploads)
# ========================================
AWS_ACCESS_KEY_ID=
AWS_ACCESS_SECRET=
AWS_REGION=ap-southeast-1
AWS_BUCKET=rate-platform-uploads
# ========================================
# SECURITY & ENCRYPTION
# ========================================
# Generate with: openssl rand -base64 32
ENCRYPTION_KEY=
JWT_SECRET=
SESSION_SECRET=
# ========================================
# MONITORING & LOGGING
# ========================================
SENTRY_DSN=
LOG_LEVEL=info
ENABLE_METRICS=true
# ========================================
# ENVIRONMENT
# ========================================
NODE_ENV=development
APP_ENV=development
# ========================================
# FEATURE FLAGS
# ========================================
ENABLE_AI_ANALYSIS=true
ENABLE_SPAM_DETECTION=true
ENABLE_FAKE_REVIEW_DETECTION=true
ENABLE_REDIS_CACHE=true
# ========================================
# EXTERNAL SERVICES
# ========================================
# GitHub (for PR creation)
GITHUB_TOKEN=
# Webhook URLs (optional)
WEBHOOK_URL=
WEBHOOK_SECRET=
# ========================================
# DEVELOPMENT SETTINGS
# ========================================
DEBUG=false
VERBOSE_LOGGING=false
MOCK_EXTERNAL_APIS=false