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:
2026-04-14 11:14:37 -04:00
parent e8d9b1fd42
commit 2e41156046
3 changed files with 97 additions and 18 deletions
+73
View File
@@ -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
+19 -16
View File
@@ -1,5 +1,8 @@
# Backend Environment Variables
# Copy to .env and fill in your values
# Database # Database
DATABASE_URL="postgresql://coop:coop_password@localhost:5432/coop_credits?schema=public" DATABASE_URL="postgresql://coop:password@localhost:5432/coop_credits?schema=public"
# Server # Server
PORT=3001 PORT=3001
@@ -7,32 +10,32 @@ NODE_ENV=development
API_URL=http://localhost:3001 API_URL=http://localhost:3001
FRONTEND_URL=http://localhost:3000 FRONTEND_URL=http://localhost:3000
# JWT # JWT (generate: openssl rand -hex 32)
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production JWT_SECRET=""
JWT_EXPIRES_IN=7d
# Plex OAuth # Plex OAuth
PLEX_CLIENT_ID=your-plex-client-id PLEX_CLIENT_ID=""
PLEX_CLIENT_SECRET=your-plex-client-secret PLEX_CLIENT_SECRET=""
PLEX_REDIRECT_URI=http://localhost:3000/auth/callback PLEX_REDIRECT_URI=http://localhost:3000/auth/callback
# Tautulli # Tautulli
TAUTULLI_URL=http://localhost:8181 TAUTULLI_URL=http://172.20.1.255:8181
TAUTULLI_API_KEY=your-tautulli-api-key TAUTULLI_API_KEY=""
TAUTULLI_WEBHOOK_SECRET=your-webhook-secret TAUTULLI_WEBHOOK_SECRET=""
# Overseer # Overseer
OVERSEER_URL=http://localhost:5055 OVERSEER_URL=http://172.20.1.225:5055
OVERSEER_API_KEY=your-overseer-api-key OVERSEER_API_KEY=""
# Solana # Solana
SOLANA_RPC_URL=https://api.devnet.solana.com SOLANA_RPC_URL=https://api.devnet.solana.com
SOLANA_PROGRAM_ID=CoopCredits111111111111111111111111111111111 SOLANA_PROGRAM_ID=CoopCredits111111111111111111111111111111111
SOLANA_MINT_AUTHORITY_KEYPAIR=your-base58-encoded-keypair-for-minting SOLANA_MINT_AUTHORITY_KEYPAIR=""
SOLANA_TOKEN_DECIMALS=6 SOLANA_TOKEN_DECIMALS=6
# Redis (optional - for caching and pub/sub) # Security
REDIS_URL=redis://localhost:6379 ENCRYPTION_KEY=""
TRUST_PROXY=false
# Encryption (for wallet private keys) # Redis (optional)
ENCRYPTION_KEY=your-32-char-encryption-key!! REDIS_URL=redis://localhost:6379
+5 -2
View File
@@ -1,10 +1,13 @@
# API # Frontend Environment Variables
# Copy to .env.local and fill in your values
# API URL
NEXT_PUBLIC_API_URL=http://localhost:3001 NEXT_PUBLIC_API_URL=http://localhost:3001
# Solana # Solana
NEXT_PUBLIC_SOLANA_NETWORK=devnet NEXT_PUBLIC_SOLANA_NETWORK=devnet
NEXT_PUBLIC_SOLANA_RPC_URL=https://api.devnet.solana.com NEXT_PUBLIC_SOLANA_RPC_URL=https://api.devnet.solana.com
# App # App Info
NEXT_PUBLIC_APP_NAME=CoopCredits NEXT_PUBLIC_APP_NAME=CoopCredits
NEXT_PUBLIC_APP_URL=http://localhost:3000 NEXT_PUBLIC_APP_URL=http://localhost:3000