Greg Heartsfield
|
5a19a8876f
|
feat: allow database directory configuration
Adds configuration options for database directory, either on command
line through (--db dir-name) or the config.toml file.
Fixes: https://todo.sr.ht/~gheartsfield/nostr-rs-relay/13
|
2021-12-31 11:51:57 -06:00 |
|
Greg Heartsfield
|
20ee5a054c
|
feat: rate limit event creation
A configuration option, `messages_per_sec`, imposes a global limit on
the rate for which new events can be stored.
Fixes https://todo.sr.ht/~gheartsfield/nostr-rs-relay/6
|
2021-12-30 21:07:21 -06:00 |
|
Greg Heartsfield
|
f415295184
|
feat: reject future-dated events
If configured, reject events than are more than N seconds in the
future.
Fixes https://todo.sr.ht/~gheartsfield/nostr-rs-relay/5
|
2021-12-29 22:47:31 -06:00 |
|
Greg Heartsfield
|
d730bf0c59
|
feat: add configuration through file
A file named `config.toml` can now be used to load the address, port,
and some websocket configuration settings.
Fixes https://todo.sr.ht/~gheartsfield/nostr-rs-relay/3
|
2021-12-29 22:13:02 -06:00 |
|