diff options
author | stuebinm | 2023-05-04 15:17:17 +0200 |
---|---|---|
committer | stuebinm | 2023-05-04 15:17:17 +0200 |
commit | 6a938e39cf64eb2445c514512ba9c5c1041608de (patch) | |
tree | b55cfac1b4a86613898323a1e8396030bbd6c63e /flora/services | |
parent | 7effb4226a8db889ee092c39d9d92643e681150d (diff) |
akkoma: reject mastodon.social
Diffstat (limited to 'flora/services')
-rw-r--r-- | flora/services/akkoma.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/flora/services/akkoma.nix b/flora/services/akkoma.nix index 3eb9173..5c9f338 100644 --- a/flora/services/akkoma.nix +++ b/flora/services/akkoma.nix @@ -10,6 +10,7 @@ let }) ]; }; staticDir = "/var/lib/akkoma/static"; + inherit ((pkgs.formats.elixirConf {}).lib) mkAtom mkTuple; in { sops.secrets = { @@ -93,8 +94,14 @@ in enabled = false; redirect_on_failure = true; }; + ":mrf_simple" = { + reject = [ (mkTuple ["mastodon.social" "spam"]) ]; + }; + ":mrf".policies = map mkAtom [ + "Pleroma.Web.ActivityPub.MRF.SimplePolicy" + ]; "Pleroma.Upload" = { - filters = map (pkgs.formats.elixirConf {}).lib.mkAtom [ + filters = map mkAtom [ "Pleroma.Upload.Filter.Exiftool" "Pleroma.Upload.Filter.AnonymizeFilename" "Pleroma.Upload.Filter.Dedupe" |