diff options
| author | Claudio Maradonna <penguyman@stronzi.org> | 2022-04-07 18:25:02 +0200 |
|---|---|---|
| committer | Claudio Maradonna <penguyman@stronzi.org> | 2022-07-07 06:29:01 +0200 |
| commit | fa2a6d5d6b24657ddbda4ef11d2e6dbcb59545d3 (patch) | |
| tree | 27f0949fce0e47f3da6c129c0993e770da1bf95f /config | |
| parent | 29f4ab640b0269fc7751fca7c24cda5be912d1e5 (diff) | |
| download | pleroma-fa2a6d5d6b24657ddbda4ef11d2e6dbcb59545d3.tar.gz pleroma-fa2a6d5d6b24657ddbda4ef11d2e6dbcb59545d3.zip | |
feat: simple, but not stupid, uploader for IPFS
fix: format fix with credo
Diffstat (limited to 'config')
| -rw-r--r-- | config/config.exs | 4 | ||||
| -rw-r--r-- | config/description.exs | 24 | ||||
| -rw-r--r-- | config/dev.exs | 4 |
3 files changed, 32 insertions, 0 deletions
diff --git a/config/config.exs b/config/config.exs index 6a5acda09..7efad0061 100644 --- a/config/config.exs +++ b/config/config.exs @@ -82,6 +82,10 @@ config :ex_aws, :s3, # region: "us-east-1", # may be required for Amazon AWS scheme: "https://" +config :pleroma, Pleroma.Uploaders.IPFS, + post_gateway_url: nil, + get_gateway_url: nil + config :pleroma, :emoji, shortcode_globs: ["/emoji/custom/**/*.png"], pack_extensions: [".png", ".gif"], diff --git a/config/description.exs b/config/description.exs index 7caad18b4..d87bbb9b8 100644 --- a/config/description.exs +++ b/config/description.exs @@ -138,6 +138,30 @@ config :pleroma, :config_description, [ }, %{ group: :pleroma, + key: Pleroma.Uploaders.IPFS, + type: :group, + description: "IPFS uploader-related settings", + children: [ + %{ + key: :get_gateway_url, + type: :string, + description: "GET Gateway URL", + suggestions: [ + "get_gateway_url" + ] + }, + %{ + key: :post_gateway_url, + type: :string, + description: "POST Gateway URL", + suggestions: [ + "post_gateway_url" + ] + } + ] + }, + %{ + group: :pleroma, key: Pleroma.Uploaders.S3, type: :group, description: "S3 uploader-related settings", diff --git a/config/dev.exs b/config/dev.exs index ab3e83c12..89a84bf05 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -58,6 +58,10 @@ 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 |
