feat: hosting NGINX + webhook Gitea para deploy automático
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
# HOSTING — Despliegue en Servidor NGINX Privado
|
||||
|
||||
> Última actualización: 2026-05-03
|
||||
|
||||
## Servidor
|
||||
|
||||
| Parámetro | Valor |
|
||||
|---|---|
|
||||
| **IP** | `10.0.10.117` |
|
||||
| **Acceso SSH** | `ssh rmonla@10.0.10.117` |
|
||||
| **Dominio público** | `rmonla.duckdns.org` (SSL Let's Encrypt) |
|
||||
| **Web Server** | NGINX |
|
||||
|
||||
## URL de Acceso
|
||||
|
||||
| Entorno | URL |
|
||||
|---|---|
|
||||
| **Red local** | `http://10.0.10.117/ksaldis-dt` |
|
||||
| **Público** | `https://rmonla.duckdns.org/ksaldis-dt` |
|
||||
|
||||
## Qué se Sirve
|
||||
|
||||
Un único archivo `index.html` con el **Libro de Estudio completo** del Curso de Entrenador Nacional de Vóley. Es contenido estático puro, autónomo, sin dependencias externas.
|
||||
|
||||
```
|
||||
/var/www/ksaldis-dt/
|
||||
└── index.html ← LIBRO_DE_ESTUDIO.html renombrado
|
||||
```
|
||||
|
||||
## Configuración NGINX
|
||||
|
||||
Archivo: `/etc/nginx/sites-available/default`
|
||||
|
||||
Bloque dentro del `server {}` principal:
|
||||
|
||||
```nginx
|
||||
# Ruta /ksaldis-dt — Material de estudio de Voley
|
||||
location /ksaldis-dt {
|
||||
alias /var/www/ksaldis-dt;
|
||||
index index.html;
|
||||
try_files $uri $uri/ =404;
|
||||
autoindex on;
|
||||
}
|
||||
```
|
||||
|
||||
## Deploy / Actualización
|
||||
|
||||
Cuando se regenera el libro con `node generar_dashboard.mjs`, subir la nueva versión:
|
||||
|
||||
```bash
|
||||
scp descargar-curso/descargas/LIBRO_DE_ESTUDIO.html rmonla@10.0.10.117:/var/www/ksaldis-dt/index.html
|
||||
```
|
||||
|
||||
## Otros Sitios en el Mismo Servidor
|
||||
|
||||
| Ruta | Directorio | Tipo |
|
||||
|---|---|---|
|
||||
| `/` | `/var/www/html` | Estática |
|
||||
| `/vcby` | `/var/www/vcby` | PHP (ViaCrucis) |
|
||||
| `/ksaldis-dt` | `/var/www/ksaldis-dt` | Estática |
|
||||
Reference in New Issue
Block a user