2021-12-30 22:07:21 -05:00
|
|
|
# Nostr-rs-relay configuration
|
2022-01-03 18:42:24 -05:00
|
|
|
|
|
|
|
[info]
|
2022-01-03 22:03:30 -05:00
|
|
|
# The advertised URL for the Nostr websocket.
|
|
|
|
relay_url = "wss://nostr.example.com/"
|
|
|
|
|
2022-01-03 18:42:24 -05:00
|
|
|
# Relay information for clients. Put your unique server name here.
|
|
|
|
name = "nostr-rs-relay"
|
2022-01-03 22:03:30 -05:00
|
|
|
|
2022-01-03 18:42:24 -05:00
|
|
|
# Description
|
|
|
|
description = "A newly created nostr-rs-relay.\n\nCustomize this with your own info."
|
2022-01-03 22:03:30 -05:00
|
|
|
|
2022-01-03 18:42:24 -05:00
|
|
|
# Administrative contact pubkey
|
|
|
|
#pubkey = "0c2d168a4ae8ca58c9f1ab237b5df682599c6c7ab74307ea8b05684b60405d41"
|
|
|
|
|
|
|
|
# Administrative contact email
|
|
|
|
#email = "contact@example.com"
|
|
|
|
|
2021-12-31 12:51:57 -05:00
|
|
|
[database]
|
|
|
|
# Directory for SQLite files. Defaults to the current directory. Can
|
2021-12-31 15:08:04 -05:00
|
|
|
# also be specified (and overriden) with the "--db dirname" command
|
|
|
|
# line option.
|
2021-12-31 16:19:35 -05:00
|
|
|
data_directory = "."
|
2021-12-30 22:07:21 -05:00
|
|
|
|
|
|
|
[network]
|
|
|
|
# Bind to this network address
|
|
|
|
address = "0.0.0.0"
|
|
|
|
# Listen on this port
|
|
|
|
port = 8080
|
|
|
|
|
|
|
|
[options]
|
|
|
|
# Reject events that have timestamps greater than this many seconds in
|
|
|
|
# the future. Defaults to rejecting anything greater than 30 minutes
|
|
|
|
# from the current time.
|
2021-12-31 16:19:35 -05:00
|
|
|
reject_future_seconds = 1800
|
2021-12-30 22:07:21 -05:00
|
|
|
|
|
|
|
[limits]
|
|
|
|
# Limit events created per second, averaged over one minute. Must be
|
|
|
|
# an integer. If not set (or set to 0), defaults to unlimited.
|
|
|
|
messages_per_sec = 0
|
|
|
|
|
2021-12-31 16:19:35 -05:00
|
|
|
# Limit the maximum size of an EVENT message. Defaults to 128 KB.
|
|
|
|
# Set to 0 for unlimited.
|
|
|
|
max_event_bytes = 131072
|
|
|
|
|
|
|
|
# Maximum WebSocket message in bytes. Defaults to 128 KB.
|
2021-12-31 12:51:57 -05:00
|
|
|
max_ws_message_bytes = 131072
|
2021-12-30 22:07:21 -05:00
|
|
|
|
2021-12-31 16:19:35 -05:00
|
|
|
# Maximum WebSocket frame size in bytes. Defaults to 128 KB.
|
2021-12-31 12:51:57 -05:00
|
|
|
max_ws_frame_bytes = 131072
|
2021-12-30 22:07:21 -05:00
|
|
|
|
|
|
|
# Broadcast buffer size, in number of events. This prevents slow
|
|
|
|
# readers from consuming memory. Defaults to 4096.
|
2021-12-31 12:51:57 -05:00
|
|
|
broadcast_buffer = 4096
|
2021-12-30 22:07:21 -05:00
|
|
|
|
|
|
|
# Event persistence buffer size, in number of events. This provides
|
|
|
|
# backpressure to senders if writes are slow. Defaults to 16.
|
2021-12-31 12:51:57 -05:00
|
|
|
event_persist_buffer = 16
|