SetSSELimits configures global and per-workspace SSE connection limits. A value of 0 means unlimited.
(global, perWorkspace int)
| 946 | // SetSSELimits configures global and per-workspace SSE connection limits. |
| 947 | // A value of 0 means unlimited. |
| 948 | func (s *Server) SetSSELimits(global, perWorkspace int) { |
| 949 | s.sseMaxConnections = global |
| 950 | s.sseMaxPerWorkspace = perWorkspace |
| 951 | } |
| 952 | |
| 953 | // SetTrustedProxies configures which direct TCP peers are allowed to set |
| 954 | // X-Real-IP / X-Forwarded-For on incoming requests. Accepts a comma- |
no outgoing calls