forked from Openpanel-dev/openpanel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
49 lines (46 loc) · 1.89 KB
/
Copy path.env.example
File metadata and controls
49 lines (46 loc) · 1.89 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
# STORAGE
REDIS_URL="redis://127.0.0.1:6379"
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/postgres?schema=public"
DATABASE_URL_DIRECT="$DATABASE_URL"
CLICKHOUSE_URL="http://localhost:8123/openpanel"
# REST
BATCH_SIZE="5000"
BATCH_INTERVAL="10000"
CONCURRENCY="10"
NEXT_PUBLIC_DASHBOARD_URL="http://localhost:3000"
NEXT_PUBLIC_API_URL="http://localhost:3333"
WORKER_PORT=9999
API_PORT=3333
# /agent endpoints — bearer token allow-list (comma-separated, one per agent)
AGENT_API_KEYS=""
# KAFKA (event ingestion transport)
# Leave KAFKA_BROKERS empty to use the default GroupMQ/Redis path (no change).
# Set it to switch event ingestion to Kafka (producer + worker consumer).
#
# Local Redpanda (docker-compose, no auth):
# KAFKA_BROKERS="localhost:19092"
#
# Azure Event Hubs (managed, Standard+ tier; pre-create the `events` hub):
# KAFKA_BROKERS="<namespace>.servicebus.windows.net:9093"
# KAFKA_SSL="true"
# KAFKA_SASL_MECHANISM="plain"
# KAFKA_SASL_USERNAME="$ConnectionString"
# KAFKA_SASL_PASSWORD="Endpoint=sb://<namespace>.servicebus.windows.net/;SharedAccessKeyName=...;SharedAccessKey=..."
KAFKA_BROKERS=""
KAFKA_EVENTS_TOPIC="events"
KAFKA_CONSUMER_GROUP="openpanel-events"
# KAFKA_SSL=""
# KAFKA_SASL_MECHANISM=""
# KAFKA_SASL_USERNAME=""
# KAFKA_SASL_PASSWORD=""
# DASHBOARD CHART CACHE
# TTL (seconds) for the server-side Redis cache of chart/funnel/conversion
# queries. Default 3600 (1h). Set to 0 to disable caching.
CHART_CACHE_TTL_SECONDS="3600"
# Enable cache READS in non-production (writes always happen). Prod reads are
# always on via NODE_ENV=production; this is only for testing the cache locally.
ENABLE_TRPC_CACHE=""
# Optional: raise ClickHouse `max_concurrent_queries_for_user` for the app's CH
# user so a dashboard's cold-load / Reload burst doesn't exceed CH's default of
# 10 ("Too many simultaneous queries"). Unset = leave CH's default untouched.
CLICKHOUSE_QUERY_LIMIT=""