X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=config%2Fdescription.exs;h=c5ae63915bf2def4d5f9c33d839a95364e3ebb47;hb=59d447d5558ee88fa1ad479b87d14b7276547fb8;hp=48cc70e6e68ece65ddd02f3927dbd290beff6fc0;hpb=65bc9e66ad3848594df67c4b0d5539b1c8540161;p=akkoma diff --git a/config/description.exs b/config/description.exs index 48cc70e6e..c5ae63915 100644 --- a/config/description.exs +++ b/config/description.exs @@ -38,7 +38,8 @@ config :pleroma, :config_description, [ %{ key: :link_name, type: :boolean, - description: "If enabled, a name parameter will be added to the url of the upload. For example `https://instance.tld/media/imagehash.png?name=realname.png`", + description: + "If enabled, a name parameter will be added to the url of the upload. For example `https://instance.tld/media/imagehash.png?name=realname.png`", suggestions: [ true, false @@ -55,7 +56,8 @@ config :pleroma, :config_description, [ %{ key: :proxy_remote, type: :boolean, - description: "If enabled, Pleroma will proxy media requests instead of redirecting to it", + description: + "If enabled, requests to media stored using a remote uploader will be proxied instead of being redirected.", suggestions: [ true, false @@ -2808,5 +2810,28 @@ config :pleroma, :config_description, [ suggestions: [["Authorization", "Content-Type", "Idempotency-Key"]] } ] + }, + %{ + group: :pleroma, + key: :web_cache_ttl, + type: :group, + description: + "The expiration time for the web responses cache. Values should be in milliseconds or `nil` to disable expiration.", + children: [ + %{ + key: :activity_pub, + type: :integer, + description: + "activity pub routes (except question activities). Defaults to `nil` (no expiration).", + suggestions: [30_000, nil] + }, + %{ + key: :activity_pub_question, + type: :integer, + description: + "activity pub routes (question activities). Defaults to `30_000` (30 seconds).", + suggestions: [30_000] + } + ] } ]