From 5d78535472817bfc627d65a44590888b9b14e681 Mon Sep 17 00:00:00 2001 From: ARCHITECT Date: Tue, 30 Dec 2025 00:04:57 +0000 Subject: [PATCH] docs: Add HST server documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Service overview and ports - Docker containers - PostgreSQL databases - SSL domains - Maintenance commands 馃 Generated with Claude Code --- servers/hst.md | 119 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 servers/hst.md diff --git a/servers/hst.md b/servers/hst.md new file mode 100644 index 0000000..59200f9 --- /dev/null +++ b/servers/hst.md @@ -0,0 +1,119 @@ +# Servidor HST (72.62.2.84) + +Servidor de im谩genes y bases de datos Directus. + +## Acceso + +```bash +ssh -i ~/.ssh/tzzr root@72.62.2.84 +``` + +## Servicios + +| Servicio | Puerto | Dominio | Descripci贸n | +|----------|--------|---------|-------------| +| Nginx | 80, 443 | tzrtech.org | Proxy inverso con SSL | +| Directus HST | 8055 | hst.tzrtech.org | CMS base hst_images | +| Directus Lumalia | 8056 | lumalia.tzrtech.org | CMS base lumalia | +| Directus Personal | 8057 | pablo.tzrtech.org | CMS base personal | +| FileBrowser | 8081 | - | Administrador archivos | +| HST API | 5000 | /api/ | API Flask im谩genes | +| HST API Docker | 5001 | - | API Flask (contenedor) | +| PostgreSQL | 5432 | - | Base de datos | + +## Contenedores Docker + +```bash +docker ps --format "table {{.Names}}\t{{.Ports}}" +``` + +| Contenedor | Imagen | Puerto | +|------------|--------|--------| +| directus_hst | directus/directus:11 | 8055 | +| directus_lumalia | directus/directus:11 | 8056 | +| directus_personal | directus/directus:11 | 8057 | +| postgres_hst | postgres:15-alpine | 5432 | +| hst-images | nginx:alpine | 80, 443 | +| hst-api | hst-api | 5001 | +| filebrowser | filebrowser/filebrowser | 8081 | + +## Red Docker + +```bash +docker network ls +# hst-net - Red para comunicaci贸n entre contenedores +``` + +## Bases de Datos PostgreSQL + +| Base | Descripci贸n | Tablas Principales | +|------|-------------|-------------------| +| hst_images | Im谩genes y tags | hst, flg, vue, graph_edges | +| directus | Directus HST metadata | directus_* | +| lumalia | Productos Lumalia | itm, ply, loc, hst, flg | +| personal | Datos personales | itm, ply, loc, hst, flg | + +### Acceso + +```bash +docker exec -it postgres_hst psql -U directus -d +``` + +## Dominios SSL + +Certificados Let's Encrypt en `/etc/letsencrypt/live/tzrtech.org-0001/` + +| Dominio | Destino | +|---------|---------| +| tzrtech.org | Sitio principal | +| www.tzrtech.org | Sitio principal | +| hst.tzrtech.org | Directus HST | +| lumalia.tzrtech.org | Directus Lumalia | +| pablo.tzrtech.org | Directus Personal | +| db.tzrtech.org | Legacy (NocoDB) | +| graph.tzrtech.org | Graph Explorer | + +## Archivos Importantes + +| Ruta | Descripci贸n | +|------|-------------| +| /root/nginx/default.conf | Configuraci贸n Nginx | +| /root/hst_images/ | Im谩genes PNG (1,880 archivos) | +| /root/image_server.py | Servidor Flask im谩genes | +| /root/hst-api/ | API Docker | + +## Mantenimiento + +### Reiniciar servicios + +```bash +# Todos los Directus +docker restart directus_hst directus_lumalia directus_personal + +# PostgreSQL (cuidado: afecta todos los servicios) +docker restart postgres_hst + +# Nginx +docker exec hst-images nginx -s reload +``` + +### Logs + +```bash +docker logs -f directus_lumalia +docker logs -f directus_personal +journalctl -u hst-images -f +``` + +### Backup + +```bash +# Backup de base de datos +docker exec postgres_hst pg_dump -U directus lumalia > lumalia_backup.sql +docker exec postgres_hst pg_dump -U directus personal > personal_backup.sql +``` + +## 脷ltima Actualizaci贸n + +- **Fecha**: 2024-12-30 +- **Cambios**: Creaci贸n de instancias Directus para Lumalia y Personal