added tests for ipfs uploader. adapted changelog.md accordingly. improved ipfs uploader with external suggestions
fix lint description.exs
This commit is contained in:
parent
fa2a6d5d6b
commit
43dfa58ebd
7 changed files with 116 additions and 15 deletions
|
|
@ -147,7 +147,8 @@ config :pleroma, :config_description, [
|
|||
type: :string,
|
||||
description: "GET Gateway URL",
|
||||
suggestions: [
|
||||
"get_gateway_url"
|
||||
"https://ipfs.mydomain.com/<%= cid %>",
|
||||
"https://<%= cid %>.ipfs.mydomain.com/"
|
||||
]
|
||||
},
|
||||
%{
|
||||
|
|
@ -155,7 +156,7 @@ config :pleroma, :config_description, [
|
|||
type: :string,
|
||||
description: "POST Gateway URL",
|
||||
suggestions: [
|
||||
"post_gateway_url"
|
||||
"http://localhost:5001/"
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -58,10 +58,6 @@ config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: true
|
|||
# https://dashbit.co/blog/speeding-up-re-compilation-of-elixir-projects
|
||||
config :phoenix, :plug_init_mode, :runtime
|
||||
|
||||
config :pleroma, Pleroma.Uploaders.IPFS,
|
||||
post_gateway_url: nil,
|
||||
get_gateway_url: nil
|
||||
|
||||
if File.exists?("./config/dev.secret.exs") do
|
||||
import_config "dev.secret.exs"
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue