75 lines
2.3 KiB
Bash
75 lines
2.3 KiB
Bash
# ==========================================
|
|
# CoopCredits Environment Configuration
|
|
# Copy to .env and fill in your values
|
|
# ==========================================
|
|
|
|
# Database
|
|
DATABASE_URL="postgresql://coop:CHANGE_PASSWORD@localhost:5432/coop_credits?schema=public"
|
|
POSTGRES_PASSWORD="CHANGE_THIS_PASSWORD"
|
|
|
|
# Server
|
|
PORT=3002
|
|
NODE_ENV=development
|
|
API_URL=http://localhost:3002
|
|
FRONTEND_URL=http://localhost:3000
|
|
|
|
# JWT Secret (generate with: openssl rand -hex 32)
|
|
JWT_SECRET=""
|
|
|
|
# ==========================================
|
|
# Plex OAuth
|
|
# Get from: https://plex.tv/claim or Plex account settings
|
|
# ==========================================
|
|
PLEX_CLIENT_ID=""
|
|
PLEX_CLIENT_SECRET=""
|
|
PLEX_REDIRECT_URI=http://localhost:3000/auth/callback
|
|
|
|
# ==========================================
|
|
# Tautulli (Watch Analytics)
|
|
# Backend uses host network mode to reach this
|
|
# ==========================================
|
|
TAUTULLI_URL=http://172.20.1.255:8181
|
|
TAUTULLI_API_KEY=""
|
|
TAUTULLI_WEBHOOK_SECRET=""
|
|
|
|
# ==========================================
|
|
# Overseer (Content Requests)
|
|
# Backend uses host network mode to reach this
|
|
# ==========================================
|
|
OVERSEER_URL=http://172.20.1.225:5055
|
|
OVERSEER_API_KEY=""
|
|
|
|
# ==========================================
|
|
# Ko-fi (Optional Credit Purchases)
|
|
# Get verification token from Ko-fi Settings > Webhooks
|
|
# ==========================================
|
|
KOFI_VERIFICATION_TOKEN=""
|
|
|
|
# ==========================================
|
|
# Plivo (SMS Notifications)
|
|
# Get credentials from Plivo Console > Account Settings
|
|
# Free trial: 1 SMS per 60 seconds enforced in code
|
|
# ==========================================
|
|
PLIVO_AUTH_ID=""
|
|
PLIVO_AUTH_TOKEN=""
|
|
PLIVO_SRC_NUMBER="" # Your Plivo phone number (e.g. +12125551234)
|
|
|
|
# ==========================================
|
|
# Redis (optional caching)
|
|
# ==========================================
|
|
REDIS_URL=redis://localhost:6379
|
|
REDIS_PASSWORD=""
|
|
|
|
# ==========================================
|
|
# Encryption (generate with: openssl rand -base64 32)
|
|
# Used for session cookie encryption
|
|
# ==========================================
|
|
ENCRYPTION_KEY=""
|
|
|
|
# ==========================================
|
|
# Frontend Public Variables
|
|
# ==========================================
|
|
NEXT_PUBLIC_API_URL=http://localhost:3002
|
|
NEXT_PUBLIC_APP_NAME=CoopCredits
|
|
NEXT_PUBLIC_APP_URL=http://localhost:3000
|