diff --git a/config.example.yml b/config.example.yml index b4bb90d..f47f021 100644 --- a/config.example.yml +++ b/config.example.yml @@ -6,7 +6,7 @@ server: port: ":8080" # Port for the server to listen on rate_limit: - #I'm not sure is global ws_limit is working for ALL websocket messages + #WS is not working as intended. It's only working for accepting Events, which is what event limit already does ws_limit: 100 # Global rate limit for WebSocket messages (50 messages per second) ws_burst: 200 # Global burst limit for WebSocket messages (allows a burst of 100 messages) #event limit doesn't seem to work either @@ -27,13 +27,13 @@ rate_limit: limit: 100 # Rate limit for ephemeral events (100 events per second) burst: 200 # Burst limit for ephemeral events (allows a burst of 200 events) - kind_limits: # Specific rate limits for different kinds of events - - kind: 0 - limit: 1 # Rate limit for events of kind 0 (1 event per second) - burst: 5 # Burst limit for events of kind 0 (allows a burst of 5 events) - - kind: 1 - limit: 25 # Rate limit for events of kind 1 (100 events per second) - burst: 50 # Burst limit for events of kind 1 (allows a burst of 200 events) - - kind: 3 - limit: 25 # Rate limit for events of kind 3 (25 events per second) - burst: 50 # Burst limit for events of kind 3 (allows a burst of 50 events) + kind_limits: # Specific rate limits for different kinds of events + - kind: 0 + limit: 1 # Rate limit for events of kind 0 (1 event per second) + burst: 5 # Burst limit for events of kind 0 (allows a burst of 5 events) + - kind: 1 + limit: 25 # Rate limit for events of kind 1 (100 events per second) + burst: 50 # Burst limit for events of kind 1 (allows a burst of 200 events) + - kind: 3 + limit: 25 # Rate limit for events of kind 3 (25 events per second) + burst: 50 # Burst limit for events of kind 3 (allows a burst of 50 events)