add a sample swift config
authorThurloat <thurloat@gmail.com>
Wed, 29 Aug 2018 01:39:33 +0000 (22:39 -0300)
committerThurloat <thurloat@gmail.com>
Wed, 29 Aug 2018 01:39:33 +0000 (22:39 -0300)
lib/mix/tasks/sample_config.eex

index 2acf35ed934fabe201b01da72b5e7ef3301efbef..3b4953cda9bb1f23a570be6a71eb3c9bbd49c647 100644 (file)
@@ -44,3 +44,21 @@ config :pleroma, Pleroma.Repo,
 # For using third-party S3 clones like wasabi, also do:
 # config :ex_aws, :s3,
 #   host: "s3.wasabisys.com"
+
+
+# Configure Openstack Swift support if desired.
+# 
+# Many openstack deployments are different, so config is left very open with 
+# no assumptions made on which provider you're using. This should allow very 
+# wide support without needing separate handlers for OVH, Rackspace, etc.
+#
+# config :pleroma, Pleroma.Uploaders.Swift,
+#  container: "some-container",
+#  username: "api-username-yyyy",
+#  password: "api-key-xxxx",
+#  tenant_id: "<openstack-project/tenant-id>",
+#  auth_url: "https://keystone-endpoint.provider.com",
+#  storage_url: "https://swift-endpoint.prodider.com/v1/AUTH_<tenant>/<container>",
+#  object_url: "https://cdn-endpoint.provider.com/<container>"
+#
+