summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar BojanNikolic <BojanNikolic@web>2015-04-07 13:38:45 +0000
committerGravatar admin <admin@branchable.com>2015-04-07 13:38:45 +0000
commit4305433c03bd1de3f5dc24e954f8898923109474 (patch)
treee000b43a2c5e3f4c8b09fc408fa385b984e73698
parent2c01f1cab1b252775e74672511f31a1d3587ba4e (diff)
Add an example on how to create time-limited URLs for sharing
-rw-r--r--doc/tips/publishing_your_files_to_the_public.mdwn8
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