-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
56 lines (45 loc) · 1.44 KB
/
.env.example
File metadata and controls
56 lines (45 loc) · 1.44 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
# RouteMQ Configuration Example
# Basic Configuration
MQTT_BROKER=localhost
MQTT_PORT=1883
MQTT_CLIENT_ID=mqtt-framework-main
MQTT_USERNAME=
MQTT_PASSWORD=
MQTT_GROUP_NAME=mqtt_framework_group
# Database Configuration
ENABLE_MYSQL=true
DB_HOST=localhost
DB_PORT=3306
DB_NAME=mqtt_framework
DB_USER=root
DB_PASS=
# Redis Configuration
ENABLE_REDIS=false
# Queue Configuration
# Queue connection driver: 'redis' or 'database'
# Redis queue is faster but requires ENABLE_REDIS=true
# Database queue is persistent but requires ENABLE_MYSQL=true
QUEUE_CONNECTION=redis
# Logging Configuration
# Enable/disable file logging (true/false)
LOG_TO_FILE=true
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO
# Log file path (relative to project root or absolute path)
LOG_FILE=logs/app.log
# Log format pattern
LOG_FORMAT=%(asctime)s - %(name)s - %(levelname)s - %(message)s
# Rotation type: 'size' for size-based rotation, 'time' for time-based rotation
LOG_ROTATION_TYPE=size
# Size-based rotation settings
# Maximum file size in bytes before rotation (default: 10MB)
LOG_MAX_BYTES=10485760
# Number of backup files to keep
LOG_BACKUP_COUNT=5
# Time-based rotation settings (only used when LOG_ROTATION_TYPE=time)
# When to rotate: 'midnight', 'D' (daily), 'H' (hourly), 'M' (monthly), etc.
LOG_ROTATION_WHEN=midnight
# Rotation interval (e.g., 1 for every day if WHEN=D)
LOG_ROTATION_INTERVAL=1
# Date format for backup file names
LOG_DATE_FORMAT=%Y-%m-%d