configuracion actual

This commit is contained in:
2025-10-05 04:00:40 -06:00
parent fa418dae4f
commit 72719e75b0
17 changed files with 1076 additions and 1274 deletions

View File

@@ -0,0 +1,45 @@
# Configuración dinámica para wifi.nucleoriofrio.com
# Proxy a radiusnucleo-node-1:3000 con soporte SSE y WebSocket
http:
routers:
wifi-nucleoriofrio:
rule: "Host(`wifi.nucleoriofrio.com`)"
entryPoints:
- websecure
service: wifi-nucleoriofrio-service
tls:
certResolver: letsencrypt
middlewares:
- wifi-headers
services:
wifi-nucleoriofrio-service:
loadBalancer:
servers:
- url: "http://radiusnucleo-node-1:3000"
# Configuración para Server-Sent Events (SSE)
passHostHeader: true
responseForwarding:
flushInterval: 1ms # Para SSE - envía datos inmediatamente
serversTransport: wifi-transport
# Middleware para headers específicos
middlewares:
wifi-headers:
headers:
customRequestHeaders:
X-Forwarded-Proto: "https"
X-Forwarded-Scheme: "https"
# No agregar security headers que puedan interferir con SSE
# Transport específico para SSE y WebSocket
serversTransports:
wifi-transport:
serverName: radiusnucleo-node-1
insecureSkipVerify: false
# Timeouts largos para SSE
forwardingTimeouts:
dialTimeout: 30s
responseHeaderTimeout: 0s # Sin timeout para headers de respuesta (SSE)
idleConnTimeout: 90s