Implement blacklisting for IPs and enhance follow list fetching
- Added functionality to handle blacklisted IPs, allowing connections to remain open until a timeout is reached. - Introduced periodic fetching of admin follow lists to improve synchronization with relay data. - Updated WebSocket message size limits to accommodate larger payloads. - Enhanced logging for better traceability during follow list fetching and event processing. - Refactored event subscription logic to improve clarity and maintainability.
This commit is contained in:
@@ -18,8 +18,8 @@ address = "0.0.0.0"
|
||||
messages_per_sec = 0
|
||||
subscriptions_per_min = 0
|
||||
max_event_bytes = 65535
|
||||
max_ws_message_bytes = 131072
|
||||
max_ws_frame_bytes = 131072
|
||||
max_ws_message_bytes = 104857600
|
||||
max_ws_frame_bytes = 104857600
|
||||
|
||||
[authorization]
|
||||
pubkey_whitelist = []
|
||||
|
||||
@@ -41,7 +41,7 @@ relay {
|
||||
}
|
||||
|
||||
# Maximum accepted incoming websocket frame size (should be larger than max event) (restart required)
|
||||
maxWebsocketPayloadSize = 131072
|
||||
maxWebsocketPayloadSize = 104857600
|
||||
|
||||
# Websocket-level PING message frequency (should be less than any reverse proxy idle timeouts) (restart required)
|
||||
autoPingSeconds = 55
|
||||
|
||||
@@ -250,7 +250,7 @@ relay {
|
||||
}
|
||||
|
||||
# Maximum accepted incoming websocket frame size (should be larger than max event) (restart required)
|
||||
maxWebsocketPayloadSize = 131072
|
||||
maxWebsocketPayloadSize = 104857600
|
||||
|
||||
# Websocket-level PING message frequency (should be less than any reverse proxy idle timeouts) (restart required)
|
||||
autoPingSeconds = 55
|
||||
@@ -332,8 +332,8 @@ address = "0.0.0.0"
|
||||
messages_per_sec = 0
|
||||
subscriptions_per_min = 0
|
||||
max_event_bytes = 65535
|
||||
max_ws_message_bytes = 131072
|
||||
max_ws_frame_bytes = 131072
|
||||
max_ws_message_bytes = 104857600
|
||||
max_ws_frame_bytes = 104857600
|
||||
|
||||
[authorization]
|
||||
pubkey_whitelist = []
|
||||
|
||||
Reference in New Issue
Block a user