mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-14 06:59:07 -05:00
improvement: default to having a event creation rate limit (5/sec)
This commit is contained in:
parent
2331c881d7
commit
e996d4c009
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user