-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
96 lines (71 loc) · 2.68 KB
/
.env.example
File metadata and controls
96 lines (71 loc) · 2.68 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
# ===========================================
# MidOrFeed - Environment Variables
# ===========================================
# Copy this file to .env and fill in your values
# Never commit .env to version control!
# ===========================================
# Required
# ===========================================
# PostgreSQL Database URL
DATABASE_URL="postgresql://user:password@localhost:5432/midorfeed"
# Riot Games API Key (https://developer.riotgames.com/)
RIOT_API_KEY="RGAPI-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
# ===========================================
# Authentication
# ===========================================
# JWT Secret for token signing (generate a secure random string)
# In development, a default key is used if not set
JWT_SECRET="your-super-secret-jwt-key-min-32-chars"
# Google OAuth (optional)
GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET=""
NEXT_PUBLIC_GOOGLE_CLIENT_ID=""
# ===========================================
# AI Features (optional)
# ===========================================
# Anthropic API Key for Claude AI (match analysis, composition reasoning)
ANTHROPIC_API_KEY="sk-ant-xxxxxxxxxxxxxxxxxxxxxxxx"
# ===========================================
# Monitoring & Alerts (optional)
# ===========================================
# Slack Webhook URL for alerts
SLACK_WEBHOOK_URL=""
# ===========================================
# Application Settings
# ===========================================
# Node environment
NODE_ENV="development"
# Public application URL (for SEO, sitemap, etc.)
NEXT_PUBLIC_APP_URL="http://localhost:3000"
# Default Riot region
DEFAULT_RIOT_REGION="euw1"
# ===========================================
# Timeouts (optional, with defaults)
# ===========================================
# Database timeout in milliseconds (default: 30000)
DB_TIMEOUT_MS="30000"
# API timeout in milliseconds (default: 10000)
API_TIMEOUT_MS="10000"
# ===========================================
# Rate Limiting (optional, with defaults)
# ===========================================
# Auth endpoints: requests per window
RATE_LIMIT_AUTH_LIMIT="5"
RATE_LIMIT_AUTH_WINDOW_MS="900000"
# API endpoints: requests per window
RATE_LIMIT_API_LIMIT="100"
RATE_LIMIT_API_WINDOW_MS="60000"
# Admin endpoints: requests per window
RATE_LIMIT_ADMIN_LIMIT="50"
RATE_LIMIT_ADMIN_WINDOW_MS="60000"
# ===========================================
# Cache TTL (optional, in seconds)
# ===========================================
CACHE_TTL_SHORT="60"
CACHE_TTL_MEDIUM="300"
CACHE_TTL_LONG="3600"
# ===========================================
# Request Limits (optional)
# ===========================================
# Maximum request body size in bytes (default: 1MB)
MAX_REQUEST_SIZE="1048576"