sedi-relay/docs/configuration.md

106 lines
2.4 KiB
Markdown
Raw Permalink Normal View History

2022-05-06 07:04:51 +00:00
# Configuration
2022-11-27 01:53:06 +00:00
## General
### DB
2022-05-06 07:04:51 +00:00
The path to the database. It contains the relay actor private key and all subscribed
instances. If the path is not absolute, it is relative to the working directory.
db: relay.jsonld
2022-11-27 01:53:06 +00:00
### Listener
2022-05-06 07:04:51 +00:00
The address and port the relay will listen on. If the reverse proxy (nginx, apache, caddy, etc)
is running on the same host, it is recommended to change `listen` to `localhost`
listen: 0.0.0.0
port: 8080
2022-11-27 01:53:06 +00:00
### Note
2022-05-06 07:04:51 +00:00
A small blurb to describe your relay instance. This will show up on the relay's home page.
note: "Make a note about your instance here."
2022-11-27 01:53:06 +00:00
### Post Limit
2022-05-06 07:04:51 +00:00
The maximum number of messages to send out at once. For each incoming message, a message will be
sent out to every subscribed instance minus the instance which sent the message. This limit
is to prevent too many outgoing connections from being made, so adjust if necessary.
2022-11-27 01:53:06 +00:00
Note: If the `workers` option is set to anything above 0, this limit will be per worker.
2022-05-06 07:04:51 +00:00
push_limit: 512
2022-11-27 01:53:06 +00:00
### Push Workers
The relay can be configured to use threads to push messages out. For smaller relays, this isn't
necessary, but bigger ones (>100 instances) will want to set this to the number of available cpu
threads.
workers: 0
### JSON GET cache limit
JSON objects (actors, nodeinfo, etc) will get cached when fetched. This will set the max number of
objects to keep in the cache.
json_cache: 1024
2022-05-06 07:04:51 +00:00
## AP
Various ActivityPub-related settings
### Host
The domain your relay will use to identify itself.
host: relay.example.com
### Whitelist Enabled
If set to `true`, only instances in the whitelist can follow the relay. Any subscribed instances
not in the whitelist will be removed from the inbox list on startup.
whitelist_enabled: false
### Whitelist
A list of domains of instances which are allowed to subscribe to your relay.
whitelist:
- bad-instance.example.com
- another-bad-instance.example.com
### Blocked Instances
A list of instances which are unable to follow the instance. If a subscribed instance is added to
the block list, it will be removed from the inbox list on startup.
blocked_instances:
- bad-instance.example.com
- another-bad-instance.example.com
### Blocked Software
A list of ActivityPub software which cannot follow your relay. This list is empty by default, but
setting this to the below list will block all other relays and prevent relay chains
2022-05-06 07:04:51 +00:00
blocked_software:
- activityrelay
- aoderelay
- social.seattle.wa.us-relay
- unciarelay