41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
# =============================================================================
|
|
# Presence Service - Production Environment
|
|
# =============================================================================
|
|
# WARNING: Do not commit real secrets! Use environment variables or secrets manager.
|
|
# =============================================================================
|
|
|
|
# Application
|
|
NODE_ENV=production
|
|
APP_PORT=3011
|
|
API_PREFIX=api/v1
|
|
|
|
# Database (PostgreSQL) - Use environment variable
|
|
DATABASE_URL=${DATABASE_URL}
|
|
|
|
# Redis - Production cluster
|
|
REDIS_HOST=${REDIS_HOST}
|
|
REDIS_PORT=${REDIS_PORT:-6379}
|
|
REDIS_PASSWORD=${REDIS_PASSWORD}
|
|
REDIS_DB=${REDIS_DB:-0}
|
|
|
|
# JWT (shared with identity-service)
|
|
JWT_SECRET=${JWT_SECRET}
|
|
|
|
# Kafka - Production cluster
|
|
KAFKA_ENABLED=true
|
|
KAFKA_BROKERS=${KAFKA_BROKERS}
|
|
KAFKA_CLIENT_ID=presence-service
|
|
KAFKA_GROUP_ID=presence-service-group
|
|
KAFKA_TOPIC_PRESENCE=presence-events
|
|
KAFKA_TOPIC_ANALYTICS=analytics-events
|
|
|
|
# Presence Configuration
|
|
PRESENCE_WINDOW_SECONDS=180
|
|
SNAPSHOT_INTERVAL_SECONDS=60
|
|
|
|
# Timezone
|
|
TZ=Asia/Shanghai
|
|
|
|
# Logging
|
|
LOG_LEVEL=info
|