Skip to content

Instantly share code, notes, and snippets.

@muracms
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save muracms/e68ec0acad5c5215342f to your computer and use it in GitHub Desktop.

Select an option

Save muracms/e68ec0acad5c5215342f to your computer and use it in GitHub Desktop.
{
"Id": "SampleMuraCMSPolicy",
"Statement": [
{
"Sid": "ReadOnlyPermToAnonymousUser",
"Action": "s3:GetObject",
"Effect": "Allow",
"Resource": "arn:aws:s3:::YourBucketName/*",
"Principal": {
"AWS": [
"*"
]
}
},
{
"Sid": "RestrictAccessToSpecificHTTPReferrer",
"Action": "s3:*",
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Resource": "arn:aws:s3:::YourBucketName/*",
"Condition": {
"StringLike": {
"aws:Referer": [
"http://www.yourdomain.com/*",
"http://yourdomain.com/*"
]
}
}
}
]
}
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": "*"
}
]
}
filestore=fileDir
filedir=/YourMappedDrive
assetdir=/YourMappedDrive
assetpath=http://yourbucketname.s3.amazonaws.com
usefilemode=false
defaultfilemode=777
filedir=/Volumes/foldername
assetdir=/Volumes/foldername
assetpath=http://bucketname.s3.amazonaws.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment