diff options
author | 2015-04-07 13:38:45 +0000 | |
---|---|---|
committer | 2015-04-07 13:38:45 +0000 | |
commit | 4305433c03bd1de3f5dc24e954f8898923109474 (patch) | |
tree | e000b43a2c5e3f4c8b09fc408fa385b984e73698 /doc | |
parent | 2c01f1cab1b252775e74672511f31a1d3587ba4e (diff) |
Add an example on how to create time-limited URLs for sharing
Diffstat (limited to 'doc')
-rw-r--r-- | doc/tips/publishing_your_files_to_the_public.mdwn | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/tips/publishing_your_files_to_the_public.mdwn b/doc/tips/publishing_your_files_to_the_public.mdwn index 3845ae3e9..ae65263a7 100644 --- a/doc/tips/publishing_your_files_to_the_public.mdwn +++ b/doc/tips/publishing_your_files_to_the_public.mdwn @@ -53,3 +53,11 @@ However, instead of just a list of links we will output a markdown-formatted lis end Very useful. + +## Sharing links with time-limited URLs + +By using pre-signed URLs it is possible to create limits on how long a URL is valid for retrieving an object. +To enable use a private S3 bucket for the remotes and then pre-sign actual URL with the script in [AWS-Tools](https://github.com/gdbtek/aws-tools). +Example: + + key=`git annex lookupkey "$fname"`; sign_s3_url.bash --region 'eu-west-1' --bucket 'mybuck' --file-path $key --aws-access-key-id XX --aws-secret-access-key XX --method 'GET' --minute-expire 10 |