-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.example
More file actions
53 lines (45 loc) · 1.68 KB
/
Copy pathenv.example
File metadata and controls
53 lines (45 loc) · 1.68 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
# zradar Environment Variables
# Copy this to .env and customize for your environment
#
# 📁 DATA PERSISTENCE:
# All database data is stored in ./data/ directory:
# - ./data/postgres/ - PostgreSQL data
# - ./data/trace-batches/ - Local trace storage
#
# This means your data survives container rebuilds!
# Use 'make clean' to remove containers (keeps data)
# Use 'make clean-all' to remove containers AND data (⚠️ deletes everything)
# =============================================================================
# DEVELOPMENT (default)
# =============================================================================
POSTGRES_PASSWORD=dev_password
RUST_LOG=debug,zradar=trace
RUST_BACKTRACE=1
QUEUE_TYPE=postgres
STORAGE_TYPE=local
# Skip job queue and write directly to persistence (useful for dev/testing)
# Set to "true" to bypass job queue for immediate persistence
# Recommended only for development/testing or low-volume deployments
# =============================================================================
# PRODUCTION (.env.prod)
# =============================================================================
# Database Connections (required for production)
# DATABASE_URL=postgres://zradar:password@prod-postgres:5432/zradar
# Application Config
# RUST_LOG=info,zradar=info
# QUEUE_TYPE=postgres
# STORAGE_TYPE=s3
# Worker Config
# WORKER_COUNT=8
# WORKER_REPLICAS=3
# S3 Storage (if STORAGE_TYPE=s3)
# AWS_REGION=us-east-1
# AWS_ACCESS_KEY_ID=your_access_key
# AWS_SECRET_ACCESS_KEY=your_secret_key
# S3_BUCKET=your-traces-bucket
# Server Ports
# OTLP_PORT=4317
# QUERY_API_PORT=8081
# Authentication (optional)
# JWT_SECRET=your_jwt_secret_here
# API_KEY_SALT=your_api_key_salt_here