Consolidar en un solo archivo dynamic/config.yml

This commit is contained in:
2025-12-01 13:17:22 +01:00
parent dec01f536c
commit 400d41687b
4 changed files with 87 additions and 95 deletions

View File

@@ -8,7 +8,7 @@ Este directorio contiene configuración que Traefik recarga automáticamente sin
- **routers.yml**: Routers HTTP/HTTPS (ejemplos comentados)
- **services.yml**: Servicios backend (ejemplos comentados)
**Nota:** Los archivos NO usan la raíz `http:` porque Traefik los carga automáticamente bajo `http.middlewares`, `http.routers`, y `http.services` respectivamente.
**Importante:** Cada archivo debe tener la estructura `http:` como raíz cuando se usa `directory:` en el proveedor file.
## Autenticación Básica

View File

@@ -1,7 +1,5 @@
# ============================================
# MIDDLEWARES
# ============================================
http:
middlewares:
# Headers de seguridad
security-headers:
headers:

View File

@@ -1,8 +1,5 @@
# ============================================
# ROUTERS Y SERVICIOS (Ejemplos comentados)
# ============================================
# Descomentar y adaptar según necesites
http:
routers:
# Ejemplo: Router para aplicación web con HTTPS y middlewares
# whoami:
# rule: "Host(`whoami.tudominio.com`)"

View File

@@ -1,8 +1,5 @@
# ============================================
# SERVICIOS (Ejemplos comentados)
# ============================================
# Descomentar y adaptar según necesites
http:
services:
# Ejemplo: Servicio apuntando a contenedor local
# whoami-service:
# loadBalancer: