-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
32 lines (32 loc) · 1006 Bytes
/
.env.example
File metadata and controls
32 lines (32 loc) · 1006 Bytes
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
# Source database (PostgreSQL with WAL)
POSTGRES_HOST=localhost
POSTGRES_USER=repluser
POSTGRES_PASSWORD=replpass
POSTGRES_DB=walstreamdb
# Control plane database
DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5433/walstream_control
REDIS_URL=redis://localhost:6379/0
REDIS_STREAM=walstream:events
REDIS_STREAM_MAXLEN=100000
# Kafka
KAFKA_BROKER=localhost:29092
KAFKA_TOPIC=walstream.archive
# Replayer gRPC
REPLAYER_HOST=localhost
REPLAYER_PORT=50051
REPLAYER_TIMEOUT_SECONDS=30
# Target database for replay
TARGET_DATABASE_URL=postgresql://postgres:postgres@localhost:5432/walstreamdb
# Dedup database
DEDUP_DATABASE_URL=postgresql://postgres:postgres@localhost:5433/walstream_control
SECRET_KEY=change-me-in-production-use-long-random-string
JWT_ALGORITHM=HS256
JWT_EXPIRATION_MINUTES=60
CORS_ORIGINS=["http://localhost:3000"]
JOB_WORKER_COUNT=4
JOB_POLL_INTERVAL_SECONDS=1.0
JOB_HEARTBEAT_INTERVAL_SECONDS=10.0
JOB_LEASE_DURATION_SECONDS=300
METRICS_PORT=9091
LOG_LEVEL=INFO
DEBUG=false