upload_limit: 16_000_000,
registrations_open: true,
federating: true,
+ allow_relay: true,
rewrite_policy: Pleroma.Web.ActivityPub.MRF.NoOpPolicy,
public: true,
quarantined_instances: []
@instance Application.get_env(:pleroma, :instance)
@federating Keyword.get(@instance, :federating)
+ @allow_relay Keyword.get(@instance, :allow_relay)
@public Keyword.get(@instance, :public)
@registrations_open Keyword.get(@instance, :registrations_open)
end
if @federating do
- scope "/", Pleroma.Web.ActivityPub do
- # XXX: not really ostatus either
- pipe_through(:ostatus)
- get("/", ActivityPubController, :relay)
+ if @allow_relay do
+ scope "/", Pleroma.Web.ActivityPub do
+ # XXX: not really ostatus either
+ pipe_through(:ostatus)
+ get("/", ActivityPubController, :relay)
+ end
end
scope "/", Pleroma.Web.ActivityPub do