-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
65 lines (56 loc) · 2.83 KB
/
.env.example
File metadata and controls
65 lines (56 loc) · 2.83 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
# Commune Environment Variables
# Copy to .env and fill in production values
# ============================================================================
# Database (PostgreSQL 16+)
# ============================================================================
DATABASE_URL=postgres://opencorde:opencorde@localhost:5434/opencorde
# ============================================================================
# Cache & Pub/Sub (Redis 7+)
# ============================================================================
REDIS_URL=redis://localhost:6379
# ============================================================================
# File Storage (MinIO / S3-compatible)
# ============================================================================
MINIO_ENDPOINT=http://localhost:9010
MINIO_ACCESS_KEY=opencorde
MINIO_SECRET_KEY=opencorde-secret-change-me
MINIO_BUCKET=opencorde
# ============================================================================
# Voice/Video (LiveKit)
# ============================================================================
# For development, use local self-hosted LiveKit or comment out
LIVEKIT_URL=ws://localhost:7880
LIVEKIT_API_KEY=devkey
LIVEKIT_API_SECRET=secret-change-me-in-production
# ============================================================================
# Authentication (JWT)
# ============================================================================
# Must be at least 64 characters for production
JWT_SECRET=change-me-in-production-use-64-chars-minimum-e8f9a1b2c3d4e5f6
JWT_ACCESS_TOKEN_EXPIRY=900
JWT_REFRESH_TOKEN_EXPIRY=2592000
# ============================================================================
# API Server
# ============================================================================
API_HOST=0.0.0.0
API_PORT=8080
# ============================================================================
# Logging
# ============================================================================
# Format: crate_name=level,other_crate=level,...
# Levels: trace, debug, info, warn, error
RUST_LOG=opencorde_api=debug,opencorde_core=debug,opencorde_db=debug,tower_http=debug
# ============================================================================
# SMTP Email (optional — if unset, reset links are logged to console instead)
# ============================================================================
# SMTP_HOST=send.one.com # Use port 465 (SMTPS) or 587 (STARTTLS)
# SMTP_PORT=465 # 465 = implicit TLS (SMTPS), 587 = STARTTLS
# SMTP_USERNAME=noreply@example.com
# SMTP_PASSWORD=secret
# SMTP_FROM=OpenCorde <noreply@example.com>
# BASE_URL=https://opencorde.com
# ============================================================================
# Environment
# ============================================================================
# development | production
ENVIRONMENT=development