## Backend Changes - Add new API endpoints: combustible, pois, mantenimiento, video, configuracion - Fix vehiculos endpoint to return paginated response with items array - Add /vehiculos/all endpoint for non-paginated list - Add /geocercas/all endpoint - Add /alertas/configuracion GET/PUT endpoints - Add /viajes/activos and /viajes/iniciar endpoints - Add /reportes/stats, /reportes/templates, /reportes/preview endpoints - Add /conductores/all and /conductores/disponibles endpoints - Update router.py to include all new modules ## Frontend Changes - Fix authentication token handling (snake_case vs camelCase) - Update vehiculosApi.listAll to use /vehiculos/all - Fix FuelGauge component usage in Combustible page - Fix chart component exports (named + default exports) - Update API client for proper token refresh ## Infrastructure - Rename services from ADAN to ATLAS - Configure Cloudflare tunnel for atlas.consultoria-as.com - Update systemd service files - Configure PostgreSQL with TimescaleDB - Configure Redis, Mosquitto, Traccar, MediaMTX ## Documentation - Update installation guides - Update API reference - Rename all ADAN references to ATLAS Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
87 lines
3.1 KiB
Plaintext
87 lines
3.1 KiB
Plaintext
# =============================================================================
|
|
# ATLAS - Variables de Entorno
|
|
# =============================================================================
|
|
# Copiar este archivo a .env y configurar los valores
|
|
|
|
# =============================================================================
|
|
# BASE DE DATOS
|
|
# =============================================================================
|
|
DATABASE_URL=postgresql://atlas:password@localhost:5432/atlas_db
|
|
DB_POOL_SIZE=10
|
|
DB_MAX_OVERFLOW=20
|
|
|
|
# =============================================================================
|
|
# REDIS
|
|
# =============================================================================
|
|
REDIS_URL=redis://localhost:6379
|
|
REDIS_DB=0
|
|
|
|
# =============================================================================
|
|
# SEGURIDAD
|
|
# =============================================================================
|
|
# Generar con: openssl rand -base64 64
|
|
JWT_SECRET=cambiar_por_clave_segura_muy_larga
|
|
ACCESS_TOKEN_EXPIRE_MINUTES=1440
|
|
REFRESH_TOKEN_EXPIRE_DAYS=7
|
|
|
|
# Generar con: openssl rand -base64 32
|
|
ENCRYPTION_KEY=cambiar_por_otra_clave_segura
|
|
|
|
# =============================================================================
|
|
# TRACCAR
|
|
# =============================================================================
|
|
TRACCAR_HOST=localhost
|
|
TRACCAR_PORT=5055
|
|
|
|
# =============================================================================
|
|
# VIDEO STREAMING (MediaMTX)
|
|
# =============================================================================
|
|
MEDIAMTX_API=http://localhost:9997
|
|
MEDIAMTX_RTSP=rtsp://localhost:8554
|
|
MEDIAMTX_WEBRTC=http://localhost:8889
|
|
MEDIAMTX_HLS=http://localhost:8888
|
|
VIDEO_STORAGE_PATH=/opt/atlas/videos
|
|
VIDEO_RETENTION_DAYS=30
|
|
|
|
# =============================================================================
|
|
# MQTT (Meshtastic)
|
|
# =============================================================================
|
|
MQTT_ENABLED=true
|
|
MQTT_HOST=localhost
|
|
MQTT_PORT=1883
|
|
MQTT_USER=mesh_gateway
|
|
MQTT_PASSWORD=cambiar_password
|
|
MQTT_TOPIC=atlas/mesh/#
|
|
|
|
# =============================================================================
|
|
# NOTIFICACIONES
|
|
# =============================================================================
|
|
SMTP_ENABLED=false
|
|
SMTP_HOST=smtp.ejemplo.com
|
|
SMTP_PORT=587
|
|
SMTP_USER=notificaciones@ejemplo.com
|
|
SMTP_PASSWORD=password
|
|
SMTP_FROM=ATLAS <notificaciones@ejemplo.com>
|
|
|
|
# =============================================================================
|
|
# DOMINIO Y URLs
|
|
# =============================================================================
|
|
DOMAIN=atlas.tudominio.com
|
|
API_URL=https://atlas.tudominio.com/api
|
|
FRONTEND_URL=https://atlas.tudominio.com
|
|
|
|
# =============================================================================
|
|
# CONFIGURACION
|
|
# =============================================================================
|
|
ENVIRONMENT=production
|
|
DEBUG=false
|
|
LOG_LEVEL=info
|
|
CORS_ORIGINS=https://atlas.tudominio.com
|
|
DEFAULT_MAX_SPEED=80
|
|
DEFAULT_STOP_ALERT_MINUTES=30
|
|
DEFAULT_OFFLINE_ALERT_MINUTES=15
|
|
GPS_UPDATE_INTERVAL=10
|
|
LOCATIONS_RETENTION_DAYS=90
|
|
ALERTS_RETENTION_DAYS=365
|
|
MAX_UPLOAD_SIZE=50
|