chore: add .env.example template files
Add environment variable templates for: - Root .env.example (all services) - backend/.env.example (API configuration) - frontend/.env.local.example (client config) Copy to .env and fill in your secrets before running.
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
# ==========================================
|
||||
# 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=3001
|
||||
NODE_ENV=development
|
||||
API_URL=http://localhost:3001
|
||||
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)
|
||||
# ==========================================
|
||||
# Your Tautulli instance URL
|
||||
TAUTULLI_URL=http://172.20.1.255:8181
|
||||
# Get API key from: Tautulli Settings > Web Interface > API
|
||||
TAUTULLI_API_KEY=""
|
||||
# Optional: Secret for webhook signature verification
|
||||
TAUTULLI_WEBHOOK_SECRET=""
|
||||
|
||||
# ==========================================
|
||||
# Overseer (Content Requests)
|
||||
# ==========================================
|
||||
# Your Overseer instance URL
|
||||
OVERSEER_URL=http://172.20.1.225:5055
|
||||
# Get API key from: Overseer Settings > General
|
||||
OVERSEER_API_KEY=""
|
||||
|
||||
# ==========================================
|
||||
# Solana (Devnet for testing)
|
||||
# ==========================================
|
||||
SOLANA_RPC_URL=https://api.devnet.solana.com
|
||||
SOLANA_PROGRAM_ID=CoopCredits111111111111111111111111111111111
|
||||
# Generate keypair with: npm run setup:solana
|
||||
SOLANA_MINT_AUTHORITY_KEYPAIR=""
|
||||
SOLANA_TOKEN_DECIMALS=6
|
||||
|
||||
# ==========================================
|
||||
# Redis (optional caching)
|
||||
# ==========================================
|
||||
REDIS_URL=redis://localhost:6379
|
||||
REDIS_PASSWORD=""
|
||||
|
||||
# ==========================================
|
||||
# Encryption (generate with: openssl rand -base64 32)
|
||||
# Used for encrypting wallet private keys
|
||||
# ==========================================
|
||||
ENCRYPTION_KEY=""
|
||||
|
||||
# ==========================================
|
||||
# Frontend Public Variables
|
||||
# ==========================================
|
||||
NEXT_PUBLIC_API_URL=http://localhost:3001
|
||||
NEXT_PUBLIC_SOLANA_NETWORK=devnet
|
||||
NEXT_PUBLIC_SOLANA_RPC_URL=https://api.devnet.solana.com
|
||||
NEXT_PUBLIC_APP_NAME=CoopCredits
|
||||
NEXT_PUBLIC_APP_URL=http://localhost:3000
|
||||
Reference in New Issue
Block a user