-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
50 lines (42 loc) · 2.18 KB
/
Copy path.env.example
File metadata and controls
50 lines (42 loc) · 2.18 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
40
41
42
43
44
45
46
47
48
49
50
# Lie Lab, Dream Club - Environment Configuration
# Copy this file to .env and fill in the required values
# =============================================================================
# Server Configuration
# =============================================================================
PORT=5000
NODE_ENV=development
# =============================================================================
# Database Configuration
# =============================================================================
# PostgreSQL connection string (Neon Database or local PostgreSQL)
# Format: postgresql://user:password@host:port/database?sslmode=require
DATABASE_URL=postgresql://user:password@localhost:5432/lielabdreamclub
# =============================================================================
# Replit Authentication (SSO)
# =============================================================================
# Get these from your Replit deployment settings
# Required for authentication to work
# Your Replit Application ID
REPL_ID=your-repl-id-here
# OpenID Connect Issuer URL (usually https://replit.com/oidc)
ISSUER_URL=https://replit.com/oidc
# Session secret for encrypting session data
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
SESSION_SECRET=your-session-secret-here-min-32-characters
# =============================================================================
# Optional: OpenAI Configuration (for future AI story generation)
# =============================================================================
# OPENAI_API_KEY=sk-your-openai-api-key-here
# =============================================================================
# Development Notes
# =============================================================================
# 1. For local development without Replit Auth:
# - The app will fall back to in-memory storage
# - Admin features can be tested using /api/dev/set-admin/:userId endpoint
#
# 2. For production deployment on Replit:
# - All REPL_ID, ISSUER_URL, SESSION_SECRET must be set
# - DATABASE_URL will be automatically provided by Replit PostgreSQL
#
# 3. Database setup:
# - Run `npm run db:push` to sync schema with database