winx_prinx-api / server /.env.example
Sasha
feat: implement LRU cache eviction policy to prevent memory leaks
31d49af
Raw
History Blame Contribute Delete
1.18 kB
# Server configuration
PORT=3000
SESSION_SECRET=a_very_strong_random_session_secret_key_12345
# Supabase configuration
SUPABASE_URL=https://your-supabase-project.supabase.co
# It's recommended to use the service role key to write data from backend
SUPABASE_KEY=your-supabase-service-role-key-or-anon-key
# Twitch Developer configuration
# Register your app at: https://dev.twitch.tv
TWITCH_CLIENT_ID=your-twitch-client-id
TWITCH_CLIENT_SECRET=your-twitch-client-secret
# OAuth Redirect URI. Must match what is registered in the Twitch Dev Console.
# Local development: http://localhost:3000/api/auth/twitch/callback
# Production: https://your-render-app.onrender.com/api/auth/twitch/callback
TWITCH_REDIRECT_URI=http://localhost:3000/api/auth/twitch/callback
# Target Streamer Details
TWITCH_CHANNEL=winx_prinx
# Comma-separated list of Twitch usernames that get the 'admin' role
ADMIN_USERNAMES=crimbr1243
# Security Key for Local Worker
# The Local Worker must send this key in the 'x-api-key' header when posting logs
API_KEY=a_long_secure_token_for_local_worker_to_server_sync_98765
# Caching Configuration
# CACHE_ENABLED=true
# CACHE_DEFAULT_TTL=15
# CACHE_MAX_KEYS=1000