mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1357 from westonplatter/issue/1350
Issue/1350 add aws page to fog.io.
This commit is contained in:
commit
8d4918d117
2 changed files with 23 additions and 0 deletions
21
docs/storage/aws.markdown
Normal file
21
docs/storage/aws.markdown
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
layout: default
|
||||
title: Storage
|
||||
---
|
||||
|
||||
## AWS Specific Options
|
||||
|
||||
Here's a couple Fog features specific only to AWS S3.
|
||||
|
||||
**Encryption**. Amazon provides the option to AES256 encrypt files at rest on
|
||||
upload by setting the "x-amz-server-side-encryption" HTTP request header to
|
||||
AES256. You can short hand set this HTTP header via the ````encryption```` key
|
||||
value pair. For example,
|
||||
|
||||
# encrypt file at rest
|
||||
file = directory.files.create(
|
||||
:key => 'resume.html',
|
||||
:body => File.open("/path/to/my/resume.html"),
|
||||
:public => true,
|
||||
:encryption => 'AES256'
|
||||
)
|
|
@ -125,6 +125,8 @@ Pop that link in an email and you should be ready to cruise job ads and send you
|
|||
|
||||
More clouds? How much extra stuff will you have to do for these services!?! Hardly anything needs to change, you just have to pass slightly different credentials in, but I'm getting ahead of myself.
|
||||
|
||||
Check out the Amazon S3 Storage page for further details, <a href="/storage/aws.html">AWS Storage</a>.
|
||||
|
||||
## Google Cloud Storage
|
||||
|
||||
Sign up <a href="http://gs-signup-redirect.appspot.com/">here</a> and get your credentials <a href="https://storage.cloud.google.com/m">here</a> under the section "Interoperable Access".
|
||||
|
|
Loading…
Add table
Reference in a new issue