diff --git a/hosts/by-name/servo/services/pleroma.nix b/hosts/by-name/servo/services/pleroma.nix index 0c509c010..d28eb8030 100644 --- a/hosts/by-name/servo/services/pleroma.nix +++ b/hosts/by-name/servo/services/pleroma.nix @@ -1,8 +1,10 @@ # docs: -# - https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/networking/pleroma.nix -# - https://docs.pleroma.social/backend/configuration/cheatsheet/ +# - +# - +# example config: +# - # -# to run it in a oci-container: https://github.com/barrucadu/nixfiles/blob/master/services/pleroma.nix +# to run it in a oci-container: # # admin frontend: { config, pkgs, ... }: @@ -103,6 +105,17 @@ in config :logger, :ex_syslogger, level: :${logLevel} + # policies => list of message rewriting facilities to be enabled + # transparence => whether to publish these rules in node_info (and /about) + config :pleroma, :mrf, + policies: [Pleroma.Web.ActivityPub.MRF.SimplePolicy], + transparency: true + + # reject => { host, reason } + config :pleroma, :mrf_simple, + reject: [ {"threads.net", "megacorp"}, {"*.threads.net", "megacorp"} ] + # reject: [ [host: "threads.net", reason: "megacorp"], [host: "*.threads.net", reason: "megacorp"] ] + # XXX colin: not sure if this actually _does_ anything # better to steal emoji from other instances? # -