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

@@ -1,5 +1,5 @@
# =============================================================================
# Adan Fleet Monitor - Environment Variables
# Atlas Fleet Monitor - Environment Variables
# =============================================================================
# Copy this file to .env and fill in your values
# NEVER commit the .env file to version control
@@ -8,7 +8,7 @@
# =============================================================================
# Application Settings
# =============================================================================
APP_NAME="Adan Fleet Monitor"
APP_NAME="Atlas Fleet Monitor"
APP_VERSION="1.0.0"
ENVIRONMENT=development # development, staging, production
DEBUG=true
@@ -25,7 +25,7 @@ API_V1_PREFIX=/api/v1
# Database (PostgreSQL with TimescaleDB)
# =============================================================================
# Format: postgresql+asyncpg://user:password@host:port/database
DATABASE_URL=postgresql+asyncpg://adan:your_password_here@localhost:5432/adan_fleet
DATABASE_URL=postgresql+asyncpg://atlas:your_password_here@localhost:5432/atlas_fleet
# Database pool settings
DB_POOL_SIZE=20
@@ -97,7 +97,7 @@ SMTP_PORT=587
SMTP_USERNAME=
SMTP_PASSWORD=
SMTP_FROM_EMAIL=noreply@example.com
SMTP_FROM_NAME="Adan Fleet Monitor"
SMTP_FROM_NAME="Atlas Fleet Monitor"
SMTP_TLS=true
SMTP_ENABLED=false
@@ -111,7 +111,7 @@ FIREBASE_ENABLED=false
# Geocoding & Maps
# =============================================================================
# OpenStreetMap Nominatim (free, rate-limited)
NOMINATIM_USER_AGENT=adan-fleet-monitor
NOMINATIM_USER_AGENT=atlas-fleet-monitor
# Google Maps API (optional, for premium geocoding)
GOOGLE_MAPS_API_KEY=
@@ -133,7 +133,7 @@ AWS_S3_REGION=us-east-1
# =============================================================================
LOG_LEVEL=INFO # DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_FORMAT=json # json, text
LOG_FILE=./logs/adan.log
LOG_FILE=./logs/atlas.log
# =============================================================================
# Sentry (Error Tracking)