-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
106 lines (92 loc) · 3.67 KB
/
.env.example
File metadata and controls
106 lines (92 loc) · 3.67 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
102
103
104
105
106
# ============================================
# pNode Pulse Environment Configuration
# ============================================
# Copy this file to .env and replace all placeholder values
# NEVER commit .env to version control
#
# Generate secure passwords:
# openssl rand -base64 32
# ============================================
# Database Configuration
# Generate password: openssl rand -base64 24
POSTGRES_USER=pnodepulse
POSTGRES_PASSWORD=GENERATE_WITH_openssl_rand_-base64_24
POSTGRES_DB=pnodepulse
POSTGRES_PORT=5434
# Full connection string (update password to match POSTGRES_PASSWORD)
DATABASE_URL=postgresql://pnodepulse:YOUR_GENERATED_PASSWORD@localhost:5434/pnodepulse
# Redis Configuration
REDIS_PORT=6381
REDIS_URL=redis://localhost:6381
# pRPC Configuration (Seed pNode IPs for discovery)
# Comma-separated list of pNode IP addresses (without port)
# Leave empty to use default seed nodes from CLAUDE.md
# Example: PRPC_SEED_NODES=173.212.203.145,173.212.220.65,161.97.97.41
PRPC_SEED_NODES=
# Application
NODE_ENV=development
NEXT_PUBLIC_APP_URL=http://localhost:3000
# CORS Configuration (optional)
# Comma-separated list of allowed origins for API access
# Leave empty to use defaults (localhost in dev, production domains in prod)
# Example: ALLOWED_ORIGINS=https://example.com,https://app.example.com
ALLOWED_ORIGINS=
# ============================================
# Security (REQUIRED - Generate unique values!)
# ============================================
# IMPORTANT: Use strong random secrets even in development!
# Predictable secrets train bad habits and pose risks if .env leaks.
#
# Generate unique secrets:
# JWT_SECRET: openssl rand -base64 32
# ADMIN_API_KEY: openssl rand -hex 16
#
# Example (DO NOT use these - generate your own):
# JWT_SECRET=Kj8mN2pQ4rS6tV8xZ0bD3fG5hJ7kL9nP1qR3sU5wY7zA
# ADMIN_API_KEY=a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6
# ============================================
JWT_SECRET=GENERATE_WITH_openssl_rand_-base64_32
ADMIN_API_KEY=GENERATE_WITH_openssl_rand_-hex_16
# Node Pruning Configuration
# Controls when nodes transition: ACTIVE → INACTIVE → ARCHIVED
PRUNE_INACTIVE_THRESHOLD_HOURS=24
PRUNE_ARCHIVE_THRESHOLD_DAYS=7
# TimescaleDB Metrics Retention (requires manual setup, see migration SQL)
# METRICS_COMPRESSION_DAYS=30
# METRICS_RETENTION_DAYS=90
# ============================================
# Email/SMTP Configuration (optional)
# Required for email alerts and report delivery
# ============================================
# SMTP_HOST=smtp.resend.com
# SMTP_PORT=587
# SMTP_SECURE=false
# SMTP_USER=resend
# SMTP_PASS=your_resend_api_key
# SMTP_FROM=pNode Pulse <noreply@yourdomain.com>
# ============================================
# Telegram Bot (optional)
# Required for Telegram notifications
# Get token from @BotFather
# ============================================
# TELEGRAM_BOT_TOKEN=your_telegram_bot_token
# ============================================
# Sentry Error Tracking (optional but recommended)
# Get DSN from: https://sentry.io -> Project Settings -> Client Keys
# ============================================
# SENTRY_DSN=https://xxx@o123.ingest.sentry.io/456
# NEXT_PUBLIC_SENTRY_DSN=https://xxx@o123.ingest.sentry.io/456
# SENTRY_AUTH_TOKEN=sntrys_xxx (for source map uploads)
# SENTRY_ORG=your-org
# SENTRY_PROJECT=pnode-pulse
# SENTRY_ENVIRONMENT=production
# ============================================
# Logging Configuration
# ============================================
LOG_LEVEL=info
# ============================================
# Alternative Redis Configuration
# Use these instead of REDIS_URL if preferred
# ============================================
REDIS_HOST=localhost
# REDIS_PORT=6381 (already defined above)