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:
ATLAS Admin
2026-01-25 03:04:23 +00:00
parent 0dfce3ce20
commit e59aa2a742
73 changed files with 4415 additions and 450 deletions

View File

@@ -6,9 +6,9 @@
# Para usar esta configuracion:
# 1. Instalar cloudflared: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/installation
# 2. Autenticarse: cloudflared tunnel login
# 3. Crear tunnel: cloudflared tunnel create adan
# 3. Crear tunnel: cloudflared tunnel create atlas
# 4. Obtener el UUID del tunnel y actualizar este archivo
# 5. Crear registros DNS: cloudflared tunnel route dns adan adan.tudominio.com
# 5. Crear registros DNS: cloudflared tunnel route dns atlas atlas.tudominio.com
# 6. Copiar credenciales a /etc/cloudflared/
# ============================================
@@ -33,29 +33,29 @@ ingress:
# ----------------------------------------
# API Backend - /api/* y /docs
# ----------------------------------------
- hostname: adan.tudominio.com
- hostname: atlas.tudominio.com
path: /api/*
service: http://localhost:8000
originRequest:
connectTimeout: 30s
noTLSVerify: false
- hostname: adan.tudominio.com
- hostname: atlas.tudominio.com
path: /docs
service: http://localhost:8000
- hostname: adan.tudominio.com
- hostname: atlas.tudominio.com
path: /redoc
service: http://localhost:8000
- hostname: adan.tudominio.com
- hostname: atlas.tudominio.com
path: /openapi.json
service: http://localhost:8000
# ----------------------------------------
# WebSocket - /ws/*
# ----------------------------------------
- hostname: adan.tudominio.com
- hostname: atlas.tudominio.com
path: /ws/*
service: http://localhost:8000
originRequest:
@@ -68,20 +68,20 @@ ingress:
# ----------------------------------------
# Video Streaming - WebRTC/HLS
# ----------------------------------------
- hostname: stream.adan.tudominio.com
- hostname: stream.atlas.tudominio.com
path: /*
service: http://localhost:8889
originRequest:
noTLSVerify: false
- hostname: hls.adan.tudominio.com
- hostname: hls.atlas.tudominio.com
path: /*
service: http://localhost:8888
# ----------------------------------------
# API de MediaMTX (interno/admin)
# ----------------------------------------
- hostname: mediamtx-api.adan.tudominio.com
- hostname: mediamtx-api.atlas.tudominio.com
path: /*
service: http://localhost:9997
originRequest:
@@ -91,7 +91,7 @@ ingress:
# ----------------------------------------
# Frontend Web - Todo lo demas
# ----------------------------------------
- hostname: adan.tudominio.com
- hostname: atlas.tudominio.com
service: http://localhost:3000
originRequest:
noTLSVerify: false
@@ -106,9 +106,9 @@ ingress:
# ============================================
#
# DOMINIOS RECOMENDADOS:
# - adan.tudominio.com -> Frontend + API
# - stream.adan.tudominio.com -> Video WebRTC
# - hls.adan.tudominio.com -> Video HLS
# - atlas.tudominio.com -> Frontend + API
# - stream.atlas.tudominio.com -> Video WebRTC
# - hls.atlas.tudominio.com -> Video HLS
#
# INSTALACION RAPIDA CON TOKEN:
# Si prefieres usar token en lugar de archivo de config: