config example fixes

This commit is contained in:
Chris kerr 2024-07-25 21:26:47 -04:00
parent 8287508388
commit aa62bcf3da

View File

@ -6,7 +6,7 @@ server:
port: ":8080" # Port for the server to listen on port: ":8080" # Port for the server to listen on
rate_limit: 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_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) ws_burst: 200 # Global burst limit for WebSocket messages (allows a burst of 100 messages)
#event limit doesn't seem to work either #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) limit: 100 # Rate limit for ephemeral events (100 events per second)
burst: 200 # Burst limit for ephemeral events (allows a burst of 200 events) burst: 200 # Burst limit for ephemeral events (allows a burst of 200 events)
kind_limits: # Specific rate limits for different kinds of events kind_limits: # Specific rate limits for different kinds of events
- kind: 0 - kind: 0
limit: 1 # Rate limit for events of kind 0 (1 event per second) 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) burst: 5 # Burst limit for events of kind 0 (allows a burst of 5 events)
- kind: 1 - kind: 1
limit: 25 # Rate limit for events of kind 1 (100 events per second) 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) burst: 50 # Burst limit for events of kind 1 (allows a burst of 200 events)
- kind: 3 - kind: 3
limit: 25 # Rate limit for events of kind 3 (25 events per second) 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) burst: 50 # Burst limit for events of kind 3 (allows a burst of 50 events)