-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.env.example
More file actions
48 lines (39 loc) · 1.21 KB
/
.env.example
File metadata and controls
48 lines (39 loc) · 1.21 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
# StripeMeter example environment configuration
# Copy this file to .env and adjust as needed for your environment
# Core
NODE_ENV=development
API_PORT=3000
API_HOST=0.0.0.0
LOG_LEVEL=info
# Database
DATABASE_URL=postgresql://stripemeter:stripemeter_dev@localhost:5432/stripemeter
DB_USER=stripemeter
DB_PASSWORD=stripemeter_dev
DB_NAME=stripemeter
DB_PORT=5432
# Redis
REDIS_URL=redis://localhost:6379
REDIS_PORT=6379
# Security (development defaults; change in production)
JWT_SECRET=change_me_dev_jwt_secret
ENCRYPTION_KEY=change_me_dev_encryption_key
# Stripe (Test mode keys)
STRIPE_SECRET_KEY=sk_test_your_stripe_secret_key
STRIPE_PUBLISHABLE_KEY=pk_test_your_publishable_key
STRIPE_WEBHOOK_SECRET=whsec_your_webhook_secret
# Workers
WORKER_HTTP_PORT=3100
WORKER_CONCURRENCY=5
AGGREGATION_INTERVAL_MS=5000
STRIPE_WRITER_INTERVAL_MS=10000
RECONCILIATION_INTERVAL_MS=3600000
# Observability (optional local monitoring stack)
PROMETHEUS_PORT=9090
GRAFANA_PORT=3001
GRAFANA_USER=admin
GRAFANA_PASSWORD=admin
# Demo (optional)
STRIPEMETER_API_URL=http://localhost:3000
TENANT_ID=demo-tenant-001
# CORS (optional; comma-separated origins). Leave unset to allow all in dev.
# API_CORS_ORIGIN=http://localhost:3001,http://localhost:3002