From c1abc93a62e6415b071275cd18dc47bcbe773053 Mon Sep 17 00:00:00 2001 From: Orquestador CAS Date: Thu, 18 Jun 2026 07:07:22 +0000 Subject: [PATCH] docs(stradaautopartes): agrega Cloudflare Tunnel y URL publica --- proyectos/stradaautopartes/README.md | 54 +++++++++++++++++++++++++--- 1 file changed, 50 insertions(+), 4 deletions(-) diff --git a/proyectos/stradaautopartes/README.md b/proyectos/stradaautopartes/README.md index 0f14109..1cc0e0a 100644 --- a/proyectos/stradaautopartes/README.md +++ b/proyectos/stradaautopartes/README.md @@ -3,7 +3,8 @@ > Aplicación web para gestión de autopartes construida con **Laravel 10**, **Jetstream**, **Livewire**, **Tailwind CSS** y **MariaDB**. > > **IP**: `192.168.10.113` -> **URL**: `http://192.168.10.113` +> **URL local**: `http://192.168.10.113` +> **URL pública**: `https://strada.consultoria-as.com` > **VM**: Cisco1 VMID 113 > **Estado**: ✅ Running @@ -225,12 +226,57 @@ chown -R www-data:www-data storage bootstrap/cache public --- -## 10. Seguridad y Pendientes +## 10. Cloudflare Tunnel + +La aplicación está expuesta a internet a través de un **Cloudflare Tunnel** (`cloudflared`). + +| Parámetro | Valor | +|---|---| +| **Tunnel name** | `strada` | +| **Tunnel ID** | `10c867f3-4492-497e-94e8-374ba1e02844` | +| **Subdominio** | `strada.consultoria-as.com` | +| **URL pública** | `https://strada.consultoria-as.com` | +| **Origen local** | `http://localhost:80` | +| **Servicio** | `cloudflared` | + +### Comandos útiles + +```bash +# Estado del servicio +systemctl status cloudflared + +# Ver logs +journalctl -u cloudflared -f + +# Listar tuneles +cloudflared tunnel list + +# Recargar configuracion +systemctl restart cloudflared +``` + +### Configuración + +`/root/.cloudflared/config.yml`: + +```yaml +tunnel: 10c867f3-4492-497e-94e8-374ba1e02844 +credentials-file: /root/.cloudflared/10c867f3-4492-497e-94e8-374ba1e02844.json + +ingress: + - hostname: strada.consultoria-as.com + service: http://localhost:80 + - service: http_status:404 +``` + +--- + +## 11. Seguridad y Pendientes - [ ] Cambiar password de root. -- [ ] Configurar HTTPS con certificado SSL. +- [x] Configurar HTTPS con certificado SSL (gestionado por Cloudflare). - [ ] Crear primer usuario administrador desde `/register`. -- [ ] Configurar dominio propio si se requiere acceso público. +- [x] Configurar dominio propio para acceso público. - [ ] Revisar y aplicar `npm audit fix` para las vulnerabilidades reportadas. - [ ] Evaluar unir la VM a Tailscale para acceso remoto seguro.