From 183eaa5b298235acb8f25ba8f18b98e31471d965 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 21 Sep 2023 12:12:04 +0200 Subject: [feature] Implement explicit domain allows + allowlist federation mode (#2200) * love like winter! wohoah, wohoah * domain allow side effects * tests! logging! unallow! * document federation modes * linty linterson * test * further adventures in documentation * finish up domain block documentation (i think) * change wording a wee little bit * docs, example * consolidate shared domainPermission code * call mode once * fetch federation mode within domain blocked func * read domain perm import in streaming manner * don't use pointer to slice for domain perms * don't bother copying blocks + allows before deleting * admonish! * change wording just a scooch * update docs --- test/envparsing.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/envparsing.sh') diff --git a/test/envparsing.sh b/test/envparsing.sh index 68e250db0..684d008a9 100755 --- a/test/envparsing.sh +++ b/test/envparsing.sh @@ -81,6 +81,7 @@ EXPECT=$(cat << "EOF" "instance-expose-public-timeline": true, "instance-expose-suspended": true, "instance-expose-suspended-web": true, + "instance-federation-mode": "allowlist", "instance-inject-mastodon-version": true, "landing-page-user": "admin", "letsencrypt-cert-dir": "/gotosocial/storage/certs", @@ -192,6 +193,7 @@ GTS_INSTANCE_EXPOSE_PEERS=true \ GTS_INSTANCE_EXPOSE_SUSPENDED=true \ GTS_INSTANCE_EXPOSE_SUSPENDED_WEB=true \ GTS_INSTANCE_EXPOSE_PUBLIC_TIMELINE=true \ +GTS_INSTANCE_FEDERATION_MODE='allowlist' \ GTS_INSTANCE_DELIVER_TO_SHARED_INBOXES=false \ GTS_INSTANCE_INJECT_MASTODON_VERSION=true \ GTS_ACCOUNTS_ALLOW_CUSTOM_CSS=true \ -- cgit v1.2.3