diff options
Diffstat (limited to 'flora')
-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" |