Deleting AWS stuff we don't need anymore

pull/110/head
Ian Prest 9 years ago
parent 377bff041d
commit 64e610327e

1
.gitignore vendored

@ -4,7 +4,6 @@ mongoose*.exe
# Private data
fonts/EngraversGothic-Regular-webfont.*
aws-private-key.txt
# Per-user stuff
*.sublime-workspace

@ -1,17 +0,0 @@
import base64
import hmac, hashlib
f = open('aws-private-key.txt','rt')
AWS_SECRET_ACCESS_KEY = f.read()
f = open('upload-policy.txt','rt')
policy_document = f.read()
policy_document = policy_document.replace("\n","").replace("\r","").replace("\t","").replace(" ","");
policy = base64.b64encode(policy_document)
signature = base64.b64encode(hmac.new(AWS_SECRET_ACCESS_KEY, policy, hashlib.sha1).digest())
print "Signing Policy:", policy_document
print "Using secret key:", AWS_SECRET_ACCESS_KEY
print
print "Policy:", policy
print "Signature:", signature

@ -1,10 +0,0 @@
{"expiration": "2020-01-01T00:00:00Z",
"conditions": [
{"bucket": "www.keyboard-layout-editor.com"},
["starts-with", "$key", "layouts/"],
{"acl": "public-read"},
{"success_action_redirect": "http://www.keyboard-layout-editor.com"},
{"Content-Type": "application/json"},
["content-length-range", 0, 16384]
]
}
Loading…
Cancel
Save