-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
142 lines (114 loc) · 4.57 KB
/
.env.example
File metadata and controls
142 lines (114 loc) · 4.57 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# ===========================================
# Docker Compose Configuration
# ===========================================
# PostgreSQL (when using local Docker postgres)
POSTGRES_DB=prostaff_api_development
POSTGRES_USER=postgres
POSTGRES_PASSWORD=password
POSTGRES_PORT=5432
# Redis
REDIS_PORT=6379
REDIS_URL=redis://redis:6379/0
# API Port
API_PORT=3333
# ===========================================
# Application Configuration
# ===========================================
# Database Connection
# For Docker with local postgres: postgresql://postgres:password@postgres:5432/prostaff_api_development
# For Supabase: postgresql://user:password@host:port/database
DATABASE_URL=postgresql://postgres:password@postgres:5432/prostaff_api_development
# Rails
RAILS_ENV=development
SECRET_KEY_BASE=your_secret_key_here
# JWT Authentication
JWT_SECRET_KEY=your_jwt_secret_key_here
JWT_EXPIRATION_HOURS=24
# Riot API
RIOT_API_KEY=your_riot_api_key_here
# CORS - Add your frontend URLs separated by commas
CORS_ORIGINS=http://localhost:8888,http://localhost:5173,http://localhost:8080,http://localhost:3001
# ===========================================
# Email Configuration (Optional)
# ===========================================
SMTP_ADDRESS=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your_email@gmail.com
SMTP_PASSWORD=your_app_password
SMTP_DOMAIN=gmail.com
SMTP_AUTHENTICATION=plain
SMTP_ENABLE_STARTTLS_AUTO=true
# Mailer Settings
MAILER_FROM_EMAIL=noreply@prostaff.gg
MAILER_DELIVERY_METHOD=smtp
# Frontend URL (for email links and password reset)
FRONTEND_URL=http://localhost:8888
# ===========================================
# Rate Limiting
# ===========================================
RACK_ATTACK_LIMIT=300
RACK_ATTACK_PERIOD=300
# ===========================================
# Load Testing Credentials (Optional)
# ===========================================
# Used by k6 load tests and test scripts
# Set these in GitHub Secrets for CI/CD workflows
TEST_EMAIL=test@prostaff.gg
TEST_PASSWORD=Test123!@#
# ===========================================
# PandaScore API Integration
# ===========================================
PANDASCORE_API_KEY=your_pandascore_api_key_here
PANDASCORE_BASE_URL=https://api.pandascore.co
PANDASCORE_CACHE_TTL=3600
# ===========================================
# ProStaff Scraper Integration
# ===========================================
# Microservice that collects professional match data from LoL Esports + Leaguepedia
# See: https://scraper.prostaff.gg/docs
# Base URL of the scraper API
SCRAPER_API_URL=https://scraper.prostaff.gg
# API key for protected scraper endpoints (sync, enrich status)
# Must match SCRAPER_API_KEY configured on the scraper service
SCRAPER_API_KEY=
# ===========================================
# prostaff-events Integration (Phoenix event bus)
# ===========================================
# Real-time WebSocket hub and event bus. Rails publishes domain events to Redis
# pub/sub (channel: prostaff:events:<org_id>), Phoenix subscribes and broadcasts
# to connected frontend clients.
#
# Leave blank to disable event publishing (events are silently dropped).
# When set, Events::EventPublisher will publish to Redis on every domain event.
#
# Internal JWT secret shared with prostaff-events for service-to-service auth.
# Must match INTERNAL_JWT_SECRET configured in prostaff-events.
PHOENIX_EVENTS_ENABLED=false
PHOENIX_EVENTS_URL=http://localhost:4000
INTERNAL_JWT_SECRET=
# ===========================================
# Sidekiq Web UI (production access)
# ===========================================
# Credentials for /sidekiq dashboard (HTTP Basic Auth).
# Both must be set — UI stays inaccessible if either is blank (safe default).
# Generate password: openssl rand -hex 32
SIDEKIQ_WEB_USER=
SIDEKIQ_WEB_PASSWORD=
# ===========================================
# HashID Configuration (for public URL obfuscation)
# ===========================================
# Used for generating short, obfuscated public URLs for:
# - VOD Reviews sharing
# - Draft Plans sharing
# - Tactical Boards sharing
# - Organization invites
# Salt for HashID (REQUIRED in production!)
# This is used to obfuscate IDs - keep it secret!
# Can be any memorable string (e.g., your game name, team name)
# NEVER commit the real production value to git!
HASHID_SALT=
# Minimum HashID length (affects URL size)
# Lower = shorter URLs (e.g., 6 = "aBcD3f")
# Higher = more obfuscation (e.g., 12 = "aBcD3fGhIjKl")
# Recommended: 6-8 characters
HASHID_MIN_LENGTH=