summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2021-01-12 16:31:35 -0600
committerMark Felder <feld@feld.me>2021-01-12 16:31:35 -0600
commit8b28dce82ac244c6c5e67d8379e68e5742bfe875 (patch)
tree0c76abd0fb13ecc1a79581cea56d090fe56d2fbf /config
parent5453038ce92597fe2d26cb843d48e9aa660d1ee9 (diff)
Deprecate Pleroma.Uploaders.S3, :public_endpoint
Diffstat (limited to 'config')
-rw-r--r--config/config.exs15
-rw-r--r--config/description.exs8
-rw-r--r--config/test.exs3
3 files changed, 14 insertions, 12 deletions
diff --git a/config/config.exs b/config/config.exs
index 7b14fbfe5..2a0c6302c 100644
--- a/config/config.exs
+++ b/config/config.exs
@@ -64,14 +64,23 @@ config :pleroma, Pleroma.Upload,
link_name: false,
proxy_remote: false,
filename_display_max_length: 30,
- default_description: nil
+ default_description: nil,
+ base_url: nil
config :pleroma, Pleroma.Uploaders.Local, uploads: "uploads"
config :pleroma, Pleroma.Uploaders.S3,
bucket: nil,
- streaming_enabled: true,
- public_endpoint: "https://s3.amazonaws.com"
+ bucket_namespace: nil,
+ truncated_namespace: false,
+ streaming_enabled: true
+
+config :ex_aws, :s3,
+ # host: "s3.wasabisys.com", # required if not Amazon AWS
+ access_key_id: nil,
+ secret_access_key: nil,
+ # region: nil, # example: "us-east-1"
+ scheme: "https://"
config :pleroma, :emoji,
shortcode_globs: ["/emoji/custom/**/*.png"],
diff --git a/config/description.exs b/config/description.exs
index f438a88ab..493d362d3 100644
--- a/config/description.exs
+++ b/config/description.exs
@@ -150,17 +150,11 @@ config :pleroma, :config_description, [
suggestions: ["pleroma"]
},
%{
- key: :public_endpoint,
- type: :string,
- description: "S3 endpoint",
- suggestions: ["https://s3.amazonaws.com"]
- },
- %{
key: :truncated_namespace,
type: :string,
description:
"If you use S3 compatible service such as Digital Ocean Spaces or CDN, set folder name or \"\" etc." <>
- " For example, when using CDN to S3 virtual host format, set \"\". At this time, write CNAME to CDN in public_endpoint."
+ " For example, when using CDN to S3 virtual host format, set \"\". At this time, write CNAME to CDN in Upload base_url."
},
%{
key: :streaming_enabled,
diff --git a/config/test.exs b/config/test.exs
index 7fc457463..e482f38c8 100644
--- a/config/test.exs
+++ b/config/test.exs
@@ -117,8 +117,7 @@ config :pleroma, Pleroma.Web.ApiSpec.CastAndValidate, strict: true
config :pleroma, Pleroma.Uploaders.S3,
bucket: nil,
- streaming_enabled: true,
- public_endpoint: nil
+ streaming_enabled: true
config :tzdata, :autoupdate, :disabled