configuracion actual
This commit is contained in:
45
dynamic/wifi-nucleoriofrio.yml
Normal file
45
dynamic/wifi-nucleoriofrio.yml
Normal 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
|
||||
Reference in New Issue
Block a user