- federation: {
- # Whether to enable activitypub federation.
- enabled: false
- # Allows and blocks are described here:
- # https://join-lemmy.org/docs/en/administration/federation_getting_started.html
- #
- # list of instances with which federation is allowed
- allowed_instances: [
- instance1.tld
- instance2.tld
- /* ... */
- ]
- # Instances which we never federate anything with (but previously federated objects are unaffected)
- blocked_instances: [
- string
- /* ... */
- ]
- # If true, only federate with instances on the allowlist and block everything else. If false
- # use allowlist only for remote communities, and posts/comments in local communities
- # (meaning remote communities will show content from arbitrary instances).
- strict_allowlist: true
- # Maximum number of HTTP requests allowed to handle a single incoming activity (or a single object fetch through the search).
- http_fetch_retry_limit: 25
- # Number of workers for sending outgoing activities. Search logs for Activity queue stats to
- # see information. If running number is consistently close to the worker_count, you should
- # increase it.
- worker_count: 64
- # Use federation debug mode. Allows connecting to http and localhost urls. Also sends outgoing
- # activities synchronously for easier testing. Do not use in production.
- debug: false
- }