SetSSELimits configures global and per-workspace SSE connection limits. A value of 0 means unlimited.
(global, perWorkspace int)
| 912 | // SetSSELimits configures global and per-workspace SSE connection limits. |
| 913 | // A value of 0 means unlimited. |
| 914 | func (s *Server) SetSSELimits(global, perWorkspace int) { |
| 915 | s.sseMaxConnections = global |
| 916 | s.sseMaxPerWorkspace = perWorkspace |
| 917 | } |
| 918 | |
| 919 | // SetTrustedProxies configures which direct TCP peers are allowed to set |
| 920 | // X-Real-IP / X-Forwarded-For on incoming requests. Accepts a comma- |
no outgoing calls