# ============================================================================= # Presence Service - Environment Variables Template # ============================================================================= # Copy this file to .env.development, .env.production, or .env.test # and fill in the appropriate values for your environment. # ============================================================================= # Application NODE_ENV=development APP_PORT=3011 API_PREFIX=api/v1 # Database (PostgreSQL) DATABASE_URL=postgresql://postgres:password@localhost:5432/rwa_presence?schema=public # Redis REDIS_HOST=localhost REDIS_PORT=6379 REDIS_PASSWORD= REDIS_DB=0 # JWT (shared with identity-service) JWT_SECRET=your-super-secret-jwt-key-change-in-production # Kafka KAFKA_ENABLED=true KAFKA_BROKERS=localhost:9092 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=debug