refactor(config): split into subsections and verify on parsing

This commit is contained in:
oxalica 2024-09-13 07:20:48 -04:00
parent 93d1589730
commit 2775068e49
6 changed files with 123 additions and 77 deletions

View file

@ -42,13 +42,15 @@ max_request_len = 4096
# The maximum timestamp tolerance in seconds for request validation.
timestamp_tolerance_secs = 90
[server.ws]
# The max waiting time for the first authentication message for websocket.
ws_auth_timeout_sec = 15
auth_timeout_sec = 15
# The max waiting time for outgoing message to be received for websocket.
ws_send_timeout_sec = 15
send_timeout_sec = 15
# Maximum number of pending events a single user can have.
# If events overflow the pending buffer, older events will be dropped and
# client will be notified.
ws_event_queue_len = 1024
event_queue_len = 1024