feat: simulador GPS con cron job y pub/sub Redis
This commit is contained in:
20
backend/env
Normal file
20
backend/env
Normal file
@@ -0,0 +1,20 @@
|
||||
PORT=3000
|
||||
DB_HOST=localhost
|
||||
DB_PORT=5433
|
||||
DB_NAME=recoleccion_db
|
||||
DB_USER=recoleccion
|
||||
DB_PASSWORD=recoleccion123
|
||||
REDIS_HOST=localhost
|
||||
REDIS_PORT=6380
|
||||
JWT_SECRET=hackathon_celaya_2026_secret_key
|
||||
JWT_EXPIRES_IN=7d
|
||||
|
||||
# Simulador GPS
|
||||
# TIME_MULTIPLIER: cuántos segundos simulados por segundo real
|
||||
# 1 = tiempo real | 60 = demo (1 min real = 1 hora simulada)
|
||||
TIME_MULTIPLIER=60
|
||||
|
||||
# CRON_SCHEDULE: cada cuánto corre el simulador
|
||||
# '*/1 * * * *' = cada 1 minuto (recomendado)
|
||||
# '*/30 * * * * *' = cada 30 segundos (más responsivo en demo)
|
||||
CRON_SCHEDULE=*/1 * * * *
|
||||
Reference in New Issue
Block a user