We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 145b917 commit b39f2c4Copy full SHA for b39f2c4
docs/storage/aws.markdown
@@ -0,0 +1,21 @@
1
+---
2
+layout: default
3
+title: Storage
4
5
+
6
+## AWS Specific Options
7
8
+Here's a couple Fog features specific only to AWS S3.
9
10
+**Encryption**. Amazon provides the option to AES256 encrypt files at rest on
11
+upload by setting the "x-amz-server-side-encryption" HTTP request header to
12
+AES256. You can short hand set this HTTP header via the ````encryption```` key
13
+value pair. For example,
14
15
+ # encrypt file at rest
16
+ file = directory.files.create(
17
+ :key => 'resume.html',
18
+ :body => File.open("/path/to/my/resume.html"),
19
+ :public => true,
20
+ :encryption => 'AES256'
21
+ )
0 commit comments