mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
add aws page - wip #1350
This commit is contained in:
parent
145b917cdf
commit
b39f2c4a44
1 changed files with 21 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'
|
||||||
|
)
|
Loading…
Reference in a new issue