2026-01-30 11:05:00 +08:00
|
|
|
# Server Configuration
|
|
|
|
|
PORT=3000
|
|
|
|
|
NODE_ENV=development
|
|
|
|
|
|
|
|
|
|
# Kafka Configuration
|
|
|
|
|
KAFKA_BROKERS=localhost:9092
|
|
|
|
|
KAFKA_TOPIC=my-topic-name
|
|
|
|
|
KAFKA_GROUP_ID=my-group-id
|
2026-02-04 20:36:33 +08:00
|
|
|
KAFKA_CLIENT_ID=bls-rcu-action-client
|
|
|
|
|
KAFKA_AUTO_COMMIT=false
|
|
|
|
|
KAFKA_AUTO_COMMIT_INTERVAL_MS=5000
|
2026-01-30 11:05:00 +08:00
|
|
|
KAFKA_CONSUMER_INSTANCES=1
|
|
|
|
|
# KAFKA_SASL_USERNAME=
|
|
|
|
|
# KAFKA_SASL_PASSWORD=
|
|
|
|
|
# KAFKA_SASL_MECHANISM=plain
|
|
|
|
|
|
|
|
|
|
# Database Configuration (PostgreSQL)
|
|
|
|
|
DB_HOST=localhost
|
|
|
|
|
DB_PORT=5432
|
|
|
|
|
DB_USER=postgres
|
|
|
|
|
DB_PASSWORD=password
|
|
|
|
|
DB_DATABASE=my_database
|
|
|
|
|
DB_MAX_CONNECTIONS=10
|
|
|
|
|
|
|
|
|
|
# Redis Configuration
|
|
|
|
|
REDIS_HOST=localhost
|
|
|
|
|
REDIS_PORT=6379
|
|
|
|
|
REDIS_PASSWORD=
|
|
|
|
|
REDIS_DB=0
|
|
|
|
|
REDIS_PROJECT_NAME=my-project
|
|
|
|
|
REDIS_API_BASE_URL=http://localhost:3000
|
2026-02-03 09:26:01 +08:00
|
|
|
|
2026-03-02 11:47:52 +08:00
|
|
|
# Room Status DB Configuration (optional, falls back to DB_* values)
|
|
|
|
|
# ROOM_STATUS_DB_HOST=localhost
|
|
|
|
|
# ROOM_STATUS_DB_PORT=5432
|
|
|
|
|
# ROOM_STATUS_DB_USER=postgres
|
|
|
|
|
# ROOM_STATUS_DB_PASSWORD=password
|
|
|
|
|
# ROOM_STATUS_DB_DATABASE=bls_rcu_action
|
|
|
|
|
# ROOM_STATUS_DB_MAX_CONNECTIONS=5
|
|
|
|
|
# ROOM_STATUS_DB_SCHEMA=room_status
|
|
|
|
|
# ROOM_STATUS_DB_TABLE=room_status_moment
|
|
|
|
|
|
2026-02-03 09:26:01 +08:00
|
|
|
ENABLE_LOOP_NAME_AUTO_GENERATION=true
|
2026-03-04 09:51:26 +08:00
|
|
|
# Database Initialization Configuration
|
|
|
|
|
# Set to 'false' to skip automatic database creation, schema setup, and partition management
|
|
|
|
|
# When disabled, the service will start consuming Kafka messages and writing to existing database immediately
|
|
|
|
|
# Default: true (enable database initialization)
|
|
|
|
|
ENABLE_DATABASE_INITIALIZATION=true
|