feat: Complete ATLAS system installation and API fixes
## 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>
This commit is contained in:
18
.env.example
18
.env.example
@@ -1,12 +1,12 @@
|
||||
# =============================================================================
|
||||
# ADAN - Variables de Entorno
|
||||
# ATLAS - Variables de Entorno
|
||||
# =============================================================================
|
||||
# Copiar este archivo a .env y configurar los valores
|
||||
|
||||
# =============================================================================
|
||||
# BASE DE DATOS
|
||||
# =============================================================================
|
||||
DATABASE_URL=postgresql://adan:password@localhost:5432/adan_db
|
||||
DATABASE_URL=postgresql://atlas:password@localhost:5432/atlas_db
|
||||
DB_POOL_SIZE=10
|
||||
DB_MAX_OVERFLOW=20
|
||||
|
||||
@@ -40,7 +40,7 @@ MEDIAMTX_API=http://localhost:9997
|
||||
MEDIAMTX_RTSP=rtsp://localhost:8554
|
||||
MEDIAMTX_WEBRTC=http://localhost:8889
|
||||
MEDIAMTX_HLS=http://localhost:8888
|
||||
VIDEO_STORAGE_PATH=/opt/adan/videos
|
||||
VIDEO_STORAGE_PATH=/opt/atlas/videos
|
||||
VIDEO_RETENTION_DAYS=30
|
||||
|
||||
# =============================================================================
|
||||
@@ -51,7 +51,7 @@ MQTT_HOST=localhost
|
||||
MQTT_PORT=1883
|
||||
MQTT_USER=mesh_gateway
|
||||
MQTT_PASSWORD=cambiar_password
|
||||
MQTT_TOPIC=adan/mesh/#
|
||||
MQTT_TOPIC=atlas/mesh/#
|
||||
|
||||
# =============================================================================
|
||||
# NOTIFICACIONES
|
||||
@@ -61,14 +61,14 @@ SMTP_HOST=smtp.ejemplo.com
|
||||
SMTP_PORT=587
|
||||
SMTP_USER=notificaciones@ejemplo.com
|
||||
SMTP_PASSWORD=password
|
||||
SMTP_FROM=ADAN <notificaciones@ejemplo.com>
|
||||
SMTP_FROM=ATLAS <notificaciones@ejemplo.com>
|
||||
|
||||
# =============================================================================
|
||||
# DOMINIO Y URLs
|
||||
# =============================================================================
|
||||
DOMAIN=adan.tudominio.com
|
||||
API_URL=https://adan.tudominio.com/api
|
||||
FRONTEND_URL=https://adan.tudominio.com
|
||||
DOMAIN=atlas.tudominio.com
|
||||
API_URL=https://atlas.tudominio.com/api
|
||||
FRONTEND_URL=https://atlas.tudominio.com
|
||||
|
||||
# =============================================================================
|
||||
# CONFIGURACION
|
||||
@@ -76,7 +76,7 @@ FRONTEND_URL=https://adan.tudominio.com
|
||||
ENVIRONMENT=production
|
||||
DEBUG=false
|
||||
LOG_LEVEL=info
|
||||
CORS_ORIGINS=https://adan.tudominio.com
|
||||
CORS_ORIGINS=https://atlas.tudominio.com
|
||||
DEFAULT_MAX_SPEED=80
|
||||
DEFAULT_STOP_ALERT_MINUTES=30
|
||||
DEFAULT_OFFLINE_ALERT_MINUTES=15
|
||||
|
||||
Reference in New Issue
Block a user