forked from AnekCodesVibeCodeRepos/template-viber
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
63 lines (55 loc) · 2.13 KB
/
.env.example
File metadata and controls
63 lines (55 loc) · 2.13 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
51
52
53
54
55
56
57
58
59
60
61
62
63
# ==================================
# ENVIRONMENT CONFIGURATION
# ==================================
# Copy this file to .env and fill in your actual values
# DO NOT commit .env to version control
# ==================================
# APPLICATION
# ==================================
NODE_ENV=development
PORT=8080
# Public URL (accessible from client-side)
# Used for: absolute URLs, redirects, social sharing, etc.
# Examples:
# - Development: http://localhost:8080
# - Production: https://yourdomain.com
PUBLIC_URL=http://localhost:8080
# ==================================
# DATABASE
# ==================================
# PostgreSQL connection string
# Format: postgresql://[user]:[password]@[host]:[port]/[database]?schema=[schema]
#
# Local development example:
# DATABASE_URL=postgresql://postgres:password@localhost:5432/myapp_dev?schema=public
#
# Production example (with SSL):
# DATABASE_URL=postgresql://user:password@db.example.com:5432/myapp_prod?schema=public&sslmode=require
#
# Hosted services (Supabase/Neon/Railway/etc):
# DATABASE_URL=postgresql://[provided-by-service]
DATABASE_URL=postgresql://postgres:password@localhost:5432/waitlist_dev?schema=public
# Optional: Direct database connection URL (for connection pooling with services like Supabase)
# DIRECT_DATABASE_URL=postgresql://postgres:password@localhost:5432/waitlist_dev?schema=public
# ==================================
# API KEYS & SECRETS
# ==================================
# ⚠️ IMPORTANT: All server-side API keys MUST be stored here
# Never hardcode API keys in source code
# Never expose server-side keys to the client
# Session secret for cookie signing
SESSION_SECRET=your-secret-key-here-change-in-production
# Example: Third-party API keys
# OPENAI_API_KEY=sk-...
# STRIPE_SECRET_KEY=sk_test_...
# SENDGRID_API_KEY=SG....
# AWS_ACCESS_KEY_ID=AKIA...
# AWS_SECRET_ACCESS_KEY=...
# ==================================
# OPTIONAL: CLIENT-SIDE VARIABLES
# ==================================
# Variables with VITE_ prefix are exposed to the client
# Only use for non-sensitive configuration
# Example:
# VITE_API_BASE_URL=http://localhost:8080
# VITE_ENABLE_ANALYTICS=true