MindTouch Developer Center > Deki > FAQ > File Management > How do I...Use Amazon S3 for attachments?

How do I...Use Amazon S3 for attachments?

Table of contents
No headers

You'll need to configure the following settings with your Amazon web service account information. This can be done via Control Panel -> Configuration screen.

Login to your Amazon AWS account to find your public/private keys here

(These taken from http://wiki.opengarden.org/Deki_Wiki/Configuration)

storage/s3/bucket string
S3 bucket to use for storage (ensure this exists)
storage/s3/privatekey string
Secret access key for your S3 account
storage/s3/publickey string
Access key for your S3 account
storage/s3/prefix string
Directory within your bucket that contains all attachments. You can set this to the name of your wiki.
storage/s3/timeout integer
Timeout in seconds for S3 requests (default: 60)
storage/type string
File storage type: filesystem (fs) or Amazon S3 (s3).

Experimental:

storage/s3/allowredirects bool

(New in 1.8.3c) Attachment downloads will redirect directly to Amazon S3's server to avoid streaming through your server. This uses an expire tag to auto-expire the S3 URIs. (Default: false)

storage/s3/redirecttimeout integer

(New in 1.8.3c) The number of seconds for a redirected S3 URI to remain valid. (Default 60)

You'll need to restart dekihost after applying these settings.

Performance will depend on the speed of your server's connection. We will be implementing a caching layer to reduce the number of hits to S3.

Please don't hesitate to add more information and tips on this

//TODO: Describe how to migrate from fs to s3 and vice versa

Tag page
You must login to post a comment.
Powered by MindTouch Deki v.8.08.1a