S3: fix documentation of publicurl
5f0f063a7a
documented it as being
configured automatically, but the code never did that. Rather than try
to hard-code whatever urls amazon uses for its buckets, it seems better
to ask the user to find the url and set it.
This commit is contained in:
parent
0a875d81e5
commit
ba0745b5c2
3 changed files with 24 additions and 4 deletions
|
@ -76,8 +76,9 @@ the S3 remote.
|
||||||
only affect subseqent uploads.
|
only affect subseqent uploads.
|
||||||
|
|
||||||
* `publicurl` - Configure the URL that is used to download files
|
* `publicurl` - Configure the URL that is used to download files
|
||||||
from the bucket when they are available publically.
|
from the bucket. Using this in combination with public=yes allows
|
||||||
(This is automatically configured for Amazon S3 and the Internet Archive.)
|
git-annex to download files from the S3 remote without needing to
|
||||||
|
know the S3 credentials.
|
||||||
|
|
||||||
* `partsize` - Amazon S3 only accepts uploads up to a certian file size,
|
* `partsize` - Amazon S3 only accepts uploads up to a certian file size,
|
||||||
and storing larger files requires a multipart upload process.
|
and storing larger files requires a multipart upload process.
|
||||||
|
|
|
@ -20,8 +20,12 @@ Now, create the remote:
|
||||||
# git annex initremote pubs3 type=S3 encryption=none public=yes
|
# git annex initremote pubs3 type=S3 encryption=none public=yes
|
||||||
initremote pubs3 (checking bucket) (creating bucket in US) ok
|
initremote pubs3 (checking bucket) (creating bucket in US) ok
|
||||||
|
|
||||||
The public=yes is the crtical part; this lets the public read the contents
|
The public=yes makes git-annex set a S3 ACL so the files in the bucket
|
||||||
of the bucket. (This feature needs git-annex 5.20150617 or newer.)
|
are publically readable. For git-annex to be able to download files from
|
||||||
|
that bucket without needing your AWS credentials, you then need to tell
|
||||||
|
it the url of the bucket. Find that url, and run:
|
||||||
|
|
||||||
|
# git annex enableremote pubs3 publicurl=...
|
||||||
|
|
||||||
In the above example, no encryption was used, but it will also work
|
In the above example, no encryption was used, but it will also work
|
||||||
if you enable encryption=shared. Then files will be encrypted on S3, and
|
if you enable encryption=shared. Then files will be encrypted on S3, and
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
[[!comment format=mdwn
|
||||||
|
username="joey"
|
||||||
|
subject="""comment 2"""
|
||||||
|
date="2018-07-02T16:18:37Z"
|
||||||
|
content="""
|
||||||
|
It seems to me that you need to tell git-annex the publicurl to use to
|
||||||
|
download files from this S3 remote. That's the url to the top of the S3
|
||||||
|
bucket. Run `git annex enableremote publics3 publicurl=...' and push,
|
||||||
|
and it should then become available in every clone.
|
||||||
|
|
||||||
|
The documentation for publicurl says it's enabled by default when
|
||||||
|
public=yes, but AFAICS it's never actually done that. And I'm not sure I
|
||||||
|
want to hardcode those urls into git-annex. I've updated the documentation
|
||||||
|
instead.
|
||||||
|
"""]]
|
Loading…
Reference in a new issue