-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
39 lines (31 loc) · 2.05 KB
/
Copy path.env.example
File metadata and controls
39 lines (31 loc) · 2.05 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
# RiftLine — Environment Variables
# Copy this file to .env and fill in the values.
# ── pred.gg API credentials ───────────────────────────────────────────────────
# Register your application at https://pred.saibotu.de to obtain these.
PRED_GG_APP_ID=
PRED_GG_CLIENT_ID=
PRED_GG_CLIENT_SECRET=
# pred.gg API endpoint
PRED_GG_GQL_URL=https://pred.gg/gql
# OAuth2 endpoints (used for PLATFORM_ADMIN login via pred.gg)
PRED_GG_CALLBACK_URL=http://localhost:3001/auth/callback
PRED_GG_AUTHORIZE_URL=https://pred.gg/oauth2/authorize
PRED_GG_TOKEN_URL=https://pred.gg/api/oauth2/token
PRED_GG_TOKEN_URL_FALLBACK=https://pred.saibotu.de/api/oauth2/token
PRED_GG_OAUTH_SCOPES=offline_access profile player:read:interval hero_leaderboard:read matchup_statistic:read
PRED_GG_CLIENT_AUTH_METHOD=auto
PRED_GG_SEND_CLIENT_SECRET=false
# ── PostgreSQL ────────────────────────────────────────────────────────────────
DATABASE_URL="postgresql://predecessor:predecessor@localhost:5432/predecessor_build"
# ── Internal auth (JWT) ───────────────────────────────────────────────────────
# Generate with: openssl rand -hex 32
PS_JWT_SECRET=
PS_JWT_EXPIRES_IN=7d
# ── App config ────────────────────────────────────────────────────────────────
# Frontend URL — used by API for CORS (dev: http://localhost:5173)
FRONTEND_URL=http://localhost:5173
# API URL — used by frontend for direct calls that bypass Vite proxy (dev only)
VITE_API_URL=http://localhost:3001
# Data retention window in months (default: 3)
# Older matches, event stream, and inactive players are deleted by the monthly cron.
DATA_RETENTION_MONTHS=3