-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,39 @@ | ||
--- | ||
title: Public Buckets | ||
weight: 2 | ||
docId: cie0gae7voob2Weigh3c | ||
--- | ||
|
||
🚧 | ||
Storj supports public access with a `LINKSHARINGKEY`, which similar to public buckets on S3 but has more [fine-grained controls](docId:tBnCSrmR1jbOewG38fIr4#flags). | ||
|
||
To generate a `LINKSHARINGKEY` and make your bucket public: | ||
|
||
{% tabs %} | ||
{% tab label="uplink" %} | ||
|
||
```shell | ||
uplink share --url --readonly --disallow-lists --not-after=none sj://BUCKET | ||
``` | ||
|
||
{% /tab %} | ||
{% tab label="Web Console" %} | ||
|
||
1. Navigate to Buckets | ||
|
||
1. Select **Share Bucket** from the bucket menu | ||
|
||
![](https://link.storjshare.io/raw/jua7rls6hkx5556qfcmhrqed2tfa/docs/images/cie0gae7voob2Weigh3c_public_buckets.png) | ||
|
||
{% /tab %} | ||
{% /tabs %} | ||
|
||
## Embeddable Content | ||
|
||
The share from above will give you a browser URL linking to the default Storj share page. It will be of the form `https://link.storjshare.io/LINKSHARINGKEY/BUCKET/`. | ||
|
||
To make the content embeddable insert `/raw/` before `LINKSHARINGKEY` (you may need to swap `/s/` for `/raw/` instead). This prefix can then be used to access anything in the bucket. | ||
|
||
For example, to access two different images: | ||
|
||
https://link.storjshare.io/raw/LINKSHARINGKEY/BUCKET/my_image1.png | ||
https://link.storjshare.io/raw/LINKSHARINGKEY/BUCKET/my_image2.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters