-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.env.example
More file actions
101 lines (85 loc) · 3.91 KB
/
.env.example
File metadata and controls
101 lines (85 loc) · 3.91 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# ============================================================================
# Betterbase Environment Variables
#
# Copy this file to .env and fill in your values.
# NEVER commit .env to version control!
# ============================================================================
# ----------------------------------------------------------------------------
# Database (PostgreSQL)
# ----------------------------------------------------------------------------
POSTGRES_USER=betterbase
POSTGRES_PASSWORD=your_secure_password_here
POSTGRES_DB=betterbase
# Connection string for applications
# Format: postgresql://user:password@host:port/database
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost:5432/${POSTGRES_DB}
# ----------------------------------------------------------------------------
# Authentication
# ----------------------------------------------------------------------------
# Generate a secure secret: openssl rand -base64 32
BETTERBASE_JWT_SECRET=your-super-secret-key-min-32-chars-long
BETTERBASE_PUBLIC_URL=http://localhost:3000
# ----------------------------------------------------------------------------
# MinIO (S3-compatible storage for local development)
# ----------------------------------------------------------------------------
MINIO_ROOT_USER=minioadmin
MINIO_ROOT_PASSWORD=minioadmin_password
STORAGE_ENDPOINT=http://localhost:9000
STORAGE_ACCESS_KEY=minioadmin
STORAGE_SECRET_KEY=minioadmin_password
STORAGE_BUCKET=betterbase
# ----------------------------------------------------------------------------
# Inngest (Durable Workflow Engine)
# ----------------------------------------------------------------------------
INNGEST_LOG_LEVEL=info
# Generate signing key: openssl rand -hex 32
INNGEST_SIGNING_KEY=
# Generate event key: openssl rand -hex 16
INNGEST_EVENT_KEY=
# ----------------------------------------------------------------------------
# Application Settings
# ----------------------------------------------------------------------------
NODE_ENV=development
PORT=3001
HOST=0.0.0.0
CORS_ORIGINS=http://localhost:3000,http://localhost:5173
LOG_LEVEL=debug
# ----------------------------------------------------------------------------
# Production Settings
# ----------------------------------------------------------------------------
# HTTP port for nginx proxy (default: 80)
# HTTP_PORT=80
# Use external managed services instead of Docker (uncomment):
# DATABASE_URL=postgres://user:password@host:5432/database
# STORAGE_ENDPOINT=https://your-r2-endpoint.r2.cloudflarestorage.com
# STORAGE_ACCESS_KEY=your-access-key
# STORAGE_SECRET_KEY=your-secret-key
# ----------------------------------------------------------------------------
# Email (optional)
# ----------------------------------------------------------------------------
# SMTP_HOST=smtp.example.com
# SMTP_PORT=587
# SMTP_USER=your-smtp-user
# SMTP_PASS=your-smtp-password
# SMTP_FROM=noreply@your-domain.com
# ----------------------------------------------------------------------------
# OAuth Providers (optional)
# ----------------------------------------------------------------------------
# GITHUB_CLIENT_ID=your-github-client-id
# GITHUB_CLIENT_SECRET=your-github-client-secret
# GOOGLE_CLIENT_ID=your-google-client-id
# GOOGLE_CLIENT_SECRET=your-google-client-secret
# ----------------------------------------------------------------------------
# Phone Auth (optional - Twilio)
# ----------------------------------------------------------------------------
# STORAGE_PROVIDER=r2
# STORAGE_BUCKET=betterbase-storage
# STORAGE_REGION=auto
# STORAGE_ENDPOINT=https://your-r2-endpoint.r2.cloudflarestorage.com
# STORAGE_ACCESS_KEY_ID=your-access-key
# STORAGE_SECRET_ACCESS_KEY=your-secret-key
# ----------------------------------------------------------------------------
# Vector Search (optional)
# ----------------------------------------------------------------------------
# VECTOR_PROVIDER=openai
# OPENAI_API_KEY=your-openai-api-key