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:
@@ -1,6 +1,6 @@
|
||||
# Guia de Instalacion
|
||||
|
||||
Esta guia cubre la instalacion completa del sistema ADAN en un servidor Proxmox.
|
||||
Esta guia cubre la instalacion completa del sistema ATLAS en un servidor Proxmox.
|
||||
|
||||
## Requisitos Previos
|
||||
|
||||
@@ -31,7 +31,7 @@ Esta guia cubre la instalacion completa del sistema ADAN en un servidor Proxmox.
|
||||
|
||||
1. Click en "Create VM"
|
||||
2. **General**:
|
||||
- Name: `adan-server`
|
||||
- Name: `atlas-server`
|
||||
- Start at boot: Si
|
||||
3. **OS**:
|
||||
- ISO image: ubuntu-22.04-live-server-amd64.iso
|
||||
@@ -77,9 +77,9 @@ sudo apt install -y git curl wget
|
||||
|
||||
```bash
|
||||
cd /opt
|
||||
sudo git clone https://git.consultoria-as.com/tu-usuario/adan.git adan
|
||||
sudo chown -R $USER:$USER /opt/adan
|
||||
cd /opt/adan
|
||||
sudo git clone https://git.consultoria-as.com/tu-usuario/atlas.git atlas
|
||||
sudo chown -R $USER:$USER /opt/atlas
|
||||
cd /opt/atlas
|
||||
```
|
||||
|
||||
## Paso 4: Configurar Variables
|
||||
@@ -93,7 +93,7 @@ nano deploy/scripts/install.sh
|
||||
Modificar las variables al inicio:
|
||||
|
||||
```bash
|
||||
DOMAIN="adan.tudominio.com" # Tu dominio
|
||||
DOMAIN="atlas.tudominio.com" # Tu dominio
|
||||
ADMIN_EMAIL="admin@tudominio.com" # Email del admin
|
||||
```
|
||||
|
||||
@@ -124,7 +124,7 @@ El script realizara automaticamente:
|
||||
|
||||
1. Ir a **Zero Trust** > **Access** > **Tunnels**
|
||||
2. Click **Create a tunnel**
|
||||
3. Nombre: `adan`
|
||||
3. Nombre: `atlas`
|
||||
4. Copiar el token del tunnel
|
||||
|
||||
### En tu servidor:
|
||||
@@ -141,17 +141,17 @@ En el dashboard del tunnel, agregar Public Hostnames:
|
||||
|
||||
| Subdomain | Domain | Service |
|
||||
|-----------|--------|---------|
|
||||
| adan | tudominio.com | http://localhost:3000 |
|
||||
| adan | tudominio.com | http://localhost:8000 (path: /api/*) |
|
||||
| adan | tudominio.com | http://localhost:8000 (path: /ws/*) |
|
||||
| atlas | tudominio.com | http://localhost:3000 |
|
||||
| atlas | tudominio.com | http://localhost:8000 (path: /api/*) |
|
||||
| atlas | tudominio.com | http://localhost:8000 (path: /ws/*) |
|
||||
|
||||
## Paso 7: Verificar Instalacion
|
||||
|
||||
### Verificar servicios:
|
||||
|
||||
```bash
|
||||
sudo systemctl status adan-api
|
||||
sudo systemctl status adan-web
|
||||
sudo systemctl status atlas-api
|
||||
sudo systemctl status atlas-web
|
||||
sudo systemctl status traccar
|
||||
sudo systemctl status mediamtx
|
||||
sudo systemctl status cloudflared
|
||||
@@ -161,7 +161,7 @@ Todos deben mostrar `active (running)`.
|
||||
|
||||
### Verificar acceso web:
|
||||
|
||||
Abrir en navegador: `https://adan.tudominio.com`
|
||||
Abrir en navegador: `https://atlas.tudominio.com`
|
||||
|
||||
Deberia mostrar la pagina de login.
|
||||
|
||||
@@ -181,7 +181,7 @@ Las credenciales se generaron durante la instalacion.
|
||||
Ver credenciales guardadas:
|
||||
|
||||
```bash
|
||||
cat /opt/adan/.credentials
|
||||
cat /opt/atlas/.credentials
|
||||
```
|
||||
|
||||
Ejemplo de salida:
|
||||
@@ -190,8 +190,8 @@ Ejemplo de salida:
|
||||
=================================
|
||||
CREDENCIALES DE ACCESO
|
||||
=================================
|
||||
Dashboard: https://adan.tudominio.com
|
||||
Admin Email: admin@adan.tudominio.com
|
||||
Dashboard: https://atlas.tudominio.com
|
||||
Admin Email: admin@atlas.tudominio.com
|
||||
Admin Password: xK9mN2pL5qR8
|
||||
Database Password: [guardado en .env]
|
||||
=================================
|
||||
@@ -229,17 +229,17 @@ Si el servidor esta detras de NAT:
|
||||
|
||||
```bash
|
||||
# Ver logs detallados
|
||||
journalctl -u adan-api -n 100 --no-pager
|
||||
journalctl -u atlas-api -n 100 --no-pager
|
||||
|
||||
# Verificar configuracion
|
||||
cat /opt/adan/.env
|
||||
cat /opt/atlas/.env
|
||||
```
|
||||
|
||||
### No puedo acceder al dashboard
|
||||
|
||||
```bash
|
||||
# Verificar tunnel
|
||||
cloudflared tunnel info adan
|
||||
cloudflared tunnel info atlas
|
||||
|
||||
# Reiniciar tunnel
|
||||
sudo systemctl restart cloudflared
|
||||
|
||||
Reference in New Issue
Block a user