From 228ca56064a9deb19d9be1181952275c9c696e34 Mon Sep 17 00:00:00 2001 From: Philipp Rothmann Date: Sun, 21 Aug 2022 00:25:44 +0200 Subject: [PATCH] add federation option --- .env.sample | 2 ++ compose.yml | 1 + config.hjson.tmpl | 9 +++++++++ 3 files changed, 12 insertions(+) diff --git a/.env.sample b/.env.sample index 9fe5b6c..cc02951 100644 --- a/.env.sample +++ b/.env.sample @@ -13,3 +13,5 @@ SECRET_POSTGRES_PASSWORD_VERSION=v1 SITE_NAME=LemmyCloud SLUR_FILTER='(fag(g|got|tard)?\b|cock\s?sucker(s|ing)?|ni((g{2,}|q)+|[gq]{2,})[e3r]+(s|z)?|mudslime?s?|kikes?|\bspi(c|k)s?\b|\bchinks?|gooks?|bitch(es|ing|y)?|whor(es?|ing)|\btr(a|@)nn?(y|ies?)|\b(b|re|r)tard(ed)?s?)' + +FEDERATION_ENABLED=true \ No newline at end of file diff --git a/compose.yml b/compose.yml index c9d67a5..8d9114b 100644 --- a/compose.yml +++ b/compose.yml @@ -11,6 +11,7 @@ services: - ADMIN_USERNAME - SITE_NAME - SLUR_FILTER + - FEDERATION_ENABLED volumes: - lemmy_config:/config/ secrets: diff --git a/config.hjson.tmpl b/config.hjson.tmpl index 30f283c..dd6f0f3 100644 --- a/config.hjson.tmpl +++ b/config.hjson.tmpl @@ -53,4 +53,13 @@ # # whether or not smtp connections should use tls # use_tls: true # } + + # Settings related to activitypub federation + federation: { + enabled: {{ env "FEDERATION_ENABLED" }} + strict_allowlist: false + http_fetch_retry_limit: 25 + worker_count: 64 + debug: false + } }