improvement: default to having a event creation rate limit (5/sec)

This commit is contained in:
Greg Heartsfield 2023-01-20 11:06:52 -06:00
parent 2331c881d7
commit e996d4c009

View File

@ -63,9 +63,13 @@ reject_future_seconds = 1800
[limits] [limits]
# Limit events created per second, averaged over one minute. Must be # 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. # 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 # Limit client subscriptions created per second, averaged over one
# minute. Must be an integer. If not set (or set to 0), defaults to # minute. Must be an integer. If not set (or set to 0), defaults to