1
0
mirror of https://gitea.blesmrt.net/mikaela/gist.git synced 2024-12-22 02:32:43 +01:00
gist/matrix/m.policy.rule.server/README.md

1.6 KiB

m.policy.rule.server

This event is the language of Draupnir/Mjolnir and experimental Mjolnir style ignore in Element Web labs when speaking of homeservers.

TL;DR

  • Event type: m.policy.rule.server
  • State key: example.net (server name goes here)

Allowing all servers

WARNING! This is poorly supported and operations such as unban may unexpectedly remove this rule!

  • Event type: m.policy.rule.server
  • State key: *
{
  "entity": "*",
  "reason": "Default ACL allow all",
  "recommendation": "org.matrix.mjolnir.allow"
}

Allowing server mjolnir.matrix.org

  • Event type: m.policy.rule.server
  • State key: mjolnir.matrix.org
{
  "entity": "mjolnir.matrix.org",
  "reason": "Mjolnir for all!",
  "recommendation": "org.matrix.mjolnir.allow"
}

Banning evil example.org

Well, the example organization domain is now evil 😼

  • Event type: m.policy.rule.server
  • State key: example.org
{
  "entity": "*",
  "reason": "Evil example homeserver",
  "recommendation": "m.ban"
}