39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
# =============================================================================
|
|
# Presence Service - Test Environment
|
|
# =============================================================================
|
|
|
|
# Application
|
|
NODE_ENV=test
|
|
APP_PORT=3002
|
|
API_PREFIX=api/v1
|
|
|
|
# Database (PostgreSQL) - Test database (separate from dev)
|
|
DATABASE_URL=postgresql://test:test@localhost:5434/presence_test?schema=public
|
|
|
|
# Redis - Test instance (separate port from dev)
|
|
REDIS_HOST=localhost
|
|
REDIS_PORT=6381
|
|
REDIS_PASSWORD=
|
|
REDIS_DB=0
|
|
|
|
# JWT (shared with identity-service)
|
|
JWT_SECRET=test-jwt-secret-for-testing-only
|
|
|
|
# Kafka - Disabled for unit/integration tests
|
|
KAFKA_ENABLED=false
|
|
KAFKA_BROKERS=localhost:9092
|
|
KAFKA_CLIENT_ID=presence-service-test
|
|
KAFKA_GROUP_ID=presence-service-test-group
|
|
KAFKA_TOPIC_PRESENCE=presence-events-test
|
|
KAFKA_TOPIC_ANALYTICS=analytics-events-test
|
|
|
|
# Presence Configuration
|
|
PRESENCE_WINDOW_SECONDS=180
|
|
SNAPSHOT_INTERVAL_SECONDS=60
|
|
|
|
# Timezone
|
|
TZ=Asia/Shanghai
|
|
|
|
# Logging
|
|
LOG_LEVEL=warn
|