projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve various descriptions and labels
[akkoma]
/
config
/
description.exs
diff --git
a/config/description.exs
b/config/description.exs
index 715a0d0c36e731c6732acdc72607c19fcb44a80d..0c09636782dad571ad3a6e5a56d88bf18108e717 100644
(file)
--- a/
config/description.exs
+++ b/
config/description.exs
@@
-60,6
+60,12
@@
frontend_options = [
label: "Build directory",
type: :string,
description: "The directory inside the zip file "
label: "Build directory",
type: :string,
description: "The directory inside the zip file "
+ },
+ %{
+ key: "custom-http-headers",
+ label: "Custom HTTP headers",
+ type: {:list, :string},
+ description: "The custom HTTP headers for the frontend"
}
]
}
]
@@
-93,7
+99,8
@@
config :pleroma, :config_description, [
key: :base_url,
label: "Base URL",
type: :string,
key: :base_url,
label: "Base URL",
type: :string,
- description: "Base URL for the uploads, needed if you use CDN",
+ description:
+ "Base URL for the uploads. Required if you use a CDN or host attachments under a different domain.",
suggestions: [
"https://cdn-host.com"
]
suggestions: [
"https://cdn-host.com"
]
@@
-1539,7
+1546,8
@@
config :pleroma, :config_description, [
%{
key: :max_body_length,
type: :integer,
%{
key: :max_body_length,
type: :integer,
- description: "Maximum file size allowed through the Pleroma MediaProxy cache."
+ description:
+ "Maximum file size (in bytes) allowed through the Pleroma MediaProxy cache."
},
%{
key: :max_read_duration,
},
%{
key: :max_read_duration,
@@
-1589,7
+1597,7
@@
config :pleroma, :config_description, [
key: :min_content_length,
type: :integer,
description:
key: :min_content_length,
type: :integer,
description:
- "Min content length
to perform preview, in bytes. If greater than 0, media smaller in size will be served as is,
without thumbnailing."
+ "Min content length
(in bytes) to perform preview. Media smaller in size will be served
without thumbnailing."
}
]
},
}
]
},
@@
-1627,13
+1635,21
@@
config :pleroma, :config_description, [
group: :pleroma,
key: Pleroma.Web.MediaProxy.Invalidation.Script,
type: :group,
group: :pleroma,
key: Pleroma.Web.MediaProxy.Invalidation.Script,
type: :group,
- description: "
Script invalidate
settings",
+ description: "
Invalidation script
settings",
children: [
%{
key: :script_path,
type: :string,
children: [
%{
key: :script_path,
type: :string,
- description: "Path to
shell script. Which will run purge cache
.",
+ description: "Path to
executable script which will purge cached items
.",
suggestions: ["./installation/nginx-cache-purge.sh.example"]
suggestions: ["./installation/nginx-cache-purge.sh.example"]
+ },
+ %{
+ key: :url_format,
+ label: "URL Format",
+ type: :string,
+ description:
+ "Optional URL format preprocessing. Only required for Apache's htcacheclean.",
+ suggestions: [":htcacheclean"]
}
]
},
}
]
},
@@
-2875,7
+2891,7
@@
config :pleroma, :config_description, [
type: :integer,
description:
"Activity pub routes (except question activities). Default: `nil` (no expiration).",
type: :integer,
description:
"Activity pub routes (except question activities). Default: `nil` (no expiration).",
- suggestions: [
30_000,
nil]
+ suggestions: [nil]
},
%{
key: :activity_pub_question,
},
%{
key: :activity_pub_question,
@@
-3211,6
+3227,12
@@
config :pleroma, :config_description, [
type: :string,
description: "S3 host",
suggestions: ["s3.eu-central-1.amazonaws.com"]
type: :string,
description: "S3 host",
suggestions: ["s3.eu-central-1.amazonaws.com"]
+ },
+ %{
+ key: :region,
+ type: :string,
+ description: "S3 region (for AWS)",
+ suggestions: ["us-east-1"]
}
]
},
}
]
},
@@
-3307,9
+3329,9
@@
config :pleroma, :config_description, [
},
%{
key: :ip_whitelist,
},
%{
key: :ip_whitelist,
+ label: "IP Whitelist",
type: [{:list, :string}, {:list, :charlist}, {:list, :tuple}],
type: [{:list, :string}, {:list, :charlist}, {:list, :tuple}],
- description:
- "[Pleroma extension] If non-empty, restricts access to app metrics endpoint to specified IP addresses."
+ description: "Restrict access of app metrics endpoint to the specified IP addresses."
},
%{
key: :auth,
},
%{
key: :auth,