-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
58 lines (53 loc) · 2.3 KB
/
.env.example
File metadata and controls
58 lines (53 loc) · 2.3 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
# ----------------------------------------------------------------------------
# SERVER CONFIGURATION
# ----------------------------------------------------------------------------
# WebSocket server URL for the PubSub service
PUBSUB_SERVER_URL=http://localhost:5000
# Port for the real-time status page (use 8001 if 8000 is in use)
PUBSUB_STATUS_PAGE_PORT=8001
# Reconnection settings
PUBSUB_RECONNECTION_ENABLED=true
PUBSUB_RECONNECTION_ATTEMPTS=0
# 0 for infinite attempts
PUBSUB_RECONNECTION_DELAY_MS=2000
PUBSUB_RECONNECTION_DELAY_MAX_MS=10000
# ----------------------------------------------------------------------------
# CLIENT CONFIGURATION
# ----------------------------------------------------------------------------
# Consumer/Client identifier (unique name for this client instance)
PUBSUB_CONSUMER_NAME=demo-client
# Topics to subscribe to (comma-separated list)
PUBSUB_TOPICS=notifications,alerts,updates
# ----------------------------------------------------------------------------
# LOGGING CONFIGURATION
# ----------------------------------------------------------------------------
# Log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
PUBSUB_LOG_LEVEL=INFO
# Enable console logging
PUBSUB_LOG_TO_CONSOLE=true
# Log file path (empty to disable file logging)
PUBSUB_LOG_FILE=
# Log format
PUBSUB_LOG_FORMAT='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
# ----------------------------------------------------------------------------
# PERFORMANCE & OPTIMIZATION
# ----------------------------------------------------------------------------
# Thread pool size for message handlers
PUBSUB_THREAD_POOL_SIZE=1
# ----------------------------------------------------------------------------
# DEVELOPMENT/DEBUG
# ----------------------------------------------------------------------------
# Enable debug mode
PUBSUB_DEBUG=false
# ----------------------------------------------------------------------------
# EXAMPLE APPLICATION SETTINGS
# ----------------------------------------------------------------------------
# These are specific to the example application
# Auto-publish test messages
EXAMPLE_AUTO_PUBLISH=true
# Delay before publishing test messages (seconds)
EXAMPLE_PUBLISH_DELAY=2
# Test message interval (seconds)
EXAMPLE_MESSAGE_INTERVAL=5
# Producer name for test messages
EXAMPLE_PRODUCER_NAME=example-producer