From e996d4c009e273b264623cc209796dfc15e752f7 Mon Sep 17 00:00:00 2001 From: Greg Heartsfield Date: Fri, 20 Jan 2023 11:06:52 -0600 Subject: [PATCH] improvement: default to having a event creation rate limit (5/sec) --- config.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config.toml b/config.toml index 01de6e0..9777280 100644 --- a/config.toml +++ b/config.toml @@ -63,9 +63,13 @@ reject_future_seconds = 1800 [limits] # Limit events created per second, averaged over one minute. Must be -# an integer. If not set (or set to 0), defaults to unlimited. Note: +# an integer. If not set (or set to 0), there is no limit. Note: # this is for the server as a whole, not per-connection. -# messages_per_sec = 0 +# +# Limiting event creation is highly recommended if your relay is +# public! +# +messages_per_sec = 5 # Limit client subscriptions created per second, averaged over one # minute. Must be an integer. If not set (or set to 0), defaults to