Edit the policy JSON below and click "Save & Publish" to update the relay's policy configuration. Changes are applied immediately after validation.
Policy updates are published as kind 12345 events and require policy admin permissions.
Policy admins can update the relay's policy configuration via kind 12345 events.
Their follows get whitelisted if policy_follow_whitelist_enabled is true in the policy.
Note: Policy admins are separate from relay admins (ORLY_ADMINS). Changes here update the JSON editor - click "Save & Publish" to apply.
No policy admins configured
{:else} {#each policyAdmins as admin}
Pubkeys followed by policy admins (kind 3 events).
These get automatic read+write access when rules have write_allow_follows: true.
No follows loaded. Click "Refresh Follows" to load from database.
{:else}kind.whitelist - Only allow these event kinds (takes precedence)kind.blacklist - Deny these event kinds (if no whitelist)global - Rules applied to all eventsrules - Per-kind rules (keyed by kind number as string)default_policy - "allow" or "deny" when no rules matchpolicy_admins - Hex pubkeys that can update policypolicy_follow_whitelist_enabled - Enable follow-based accessdescription - Human-readable rule descriptionwrite_allow / write_deny - Pubkey lists for write accessread_allow / read_deny - Pubkey lists for read accesswrite_allow_follows - Grant access to policy admin followssize_limit - Max total event size in bytescontent_limit - Max content field size in bytesmax_expiry - Max expiry offset in secondsmax_age_of_event - Max age of created_at in secondsmax_age_event_in_future - Max future offset in secondsmust_have_tags - Required tag letters (e.g., ["d", "t"])tag_validation - Regex patterns for tag valuesscript - Path to external validation script{examplePolicy}
Please log in to access policy configuration.