From 309d22aca2ec0557b27c8e3d8d12b088061e0142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Mon, 16 Sep 2024 13:33:56 +0200 Subject: Allow disabling C2S ActivityPub API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- config/config.exs | 3 ++- config/description.exs | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/config.exs b/config/config.exs index cd9a2539f..b910b160d 100644 --- a/config/config.exs +++ b/config/config.exs @@ -359,7 +359,8 @@ config :pleroma, :activitypub, follow_handshake_timeout: 500, note_replies_output_limit: 5, sign_object_fetches: true, - authorized_fetch_mode: false + authorized_fetch_mode: false, + client_api_enabled: true config :pleroma, :streamer, workers: 3, diff --git a/config/description.exs b/config/description.exs index 15faecb38..7a714deff 100644 --- a/config/description.exs +++ b/config/description.exs @@ -1772,6 +1772,11 @@ config :pleroma, :config_description, [ type: :integer, description: "Following handshake timeout", suggestions: [500] + }, + %{ + key: :client_api_enabled, + type: :boolean, + description: "Allow client to server ActivityPub interactions" } ] }, -- cgit v1.2.3 From 4128ea39481a8864bcc4631dbb8d1e3d922473ab Mon Sep 17 00:00:00 2001 From: mkljczk Date: Tue, 21 Jan 2025 18:24:42 +0100 Subject: description.exs: Remove suggestion referencing a deleted module Signed-off-by: mkljczk --- config/description.exs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'config') diff --git a/config/description.exs b/config/description.exs index 47f4771eb..e8d154124 100644 --- a/config/description.exs +++ b/config/description.exs @@ -3302,8 +3302,7 @@ config :pleroma, :config_description, [ suggestions: [ Pleroma.Web.Preload.Providers.Instance, Pleroma.Web.Preload.Providers.User, - Pleroma.Web.Preload.Providers.Timelines, - Pleroma.Web.Preload.Providers.StatusNet + Pleroma.Web.Preload.Providers.Timelines ] } ] -- cgit v1.2.3 From 2c9d071aadde88e8ab615be6654e237ae01decb7 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Fri, 28 Feb 2025 16:40:38 -0800 Subject: Retire MRFs DNSRBL, FODirectReply, and QuietReply DNSRBL was a neat experiment which should live out of tree. It works and could be used to coordinate rules across different servers, but Simple Policy will always be better FODirectReply and QuietReply have reliability issues as implemented in an MRF. If we want to expose this functionality to admins it should be a setting that overrides the chosen scope during CommonAPI.post instead of trying to rewrite the recipients with an MRF. --- config/config.exs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'config') diff --git a/config/config.exs b/config/config.exs index 07e98011d..27e2d4711 100644 --- a/config/config.exs +++ b/config/config.exs @@ -413,11 +413,6 @@ config :pleroma, :mrf_vocabulary, accept: [], reject: [] -config :pleroma, :mrf_dnsrbl, - nameserver: "127.0.0.1", - port: 53, - zone: "bl.pleroma.com" - # threshold of 7 days config :pleroma, :mrf_object_age, threshold: 604_800, -- cgit v1.2.3 From d6a136f823c6e749e6d2c4a0f80202f0d7c5a960 Mon Sep 17 00:00:00 2001 From: Lain Soykaf Date: Sat, 1 Mar 2025 15:49:01 +0400 Subject: Config: Deactivate client api by default --- config/config.exs | 2 +- config/test.exs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/config.exs b/config/config.exs index a9f6aa0b7..e82448f7c 100644 --- a/config/config.exs +++ b/config/config.exs @@ -360,7 +360,7 @@ config :pleroma, :activitypub, note_replies_output_limit: 5, sign_object_fetches: true, authorized_fetch_mode: false, - client_api_enabled: true + client_api_enabled: false config :pleroma, :streamer, workers: 3, diff --git a/config/test.exs b/config/test.exs index 6fe84478a..1903ac9ee 100644 --- a/config/test.exs +++ b/config/test.exs @@ -38,7 +38,10 @@ config :pleroma, :instance, external_user_synchronization: false, static_dir: "test/instance_static/" -config :pleroma, :activitypub, sign_object_fetches: false, follow_handshake_timeout: 0 +config :pleroma, :activitypub, + sign_object_fetches: false, + follow_handshake_timeout: 0, + client_api_enabled: true # Configure your database config :pleroma, Pleroma.Repo, -- cgit v1.2.3 From 13a88bd1a5a13c771d33d327d54125c68bbb9cb3 Mon Sep 17 00:00:00 2001 From: Oneric Date: Tue, 26 Mar 2024 15:44:44 -0100 Subject: Register APNG MIME type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The newest git HEAD of MIME already knows about APNG, but this hasn’t been released yet. Without this, APNG attachments from remote posts won’t display as images in frontends. Fixes: akkoma#657 --- config/config.exs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/config.exs b/config/config.exs index e82448f7c..400a80345 100644 --- a/config/config.exs +++ b/config/config.exs @@ -150,7 +150,10 @@ config :mime, :types, %{ "application/xrd+xml" => ["xrd+xml"], "application/jrd+json" => ["jrd+json"], "application/activity+json" => ["activity+json"], - "application/ld+json" => ["activity+json"] + "application/ld+json" => ["activity+json"], + # Can be removed when bumping MIME past 2.0.5 + # see https://akkoma.dev/AkkomaGang/akkoma/issues/657 + "image/apng" => ["apng"] } config :tesla, adapter: Tesla.Adapter.Hackney -- cgit v1.2.3