Shares restricted access to objects
An access generated using
uplink share with no arguments creates an access to your entire project with read permissions.
|the serialized access, or name of the access to use|
|url for shared auth service (default "https://auth.storjshare.io")|
|the base URL for link sharing (default "https://link.storjshare.io")|
|if true, disallow deletes|
|if true, disallow lists|
|if true, disallow reads|
|if true, disallow writes|
|specify your custom hostname. if set, returns dns settings for web hosting. implies |
|path to export the shared access to|
|help for share|
|disallow access after this time (e.g. '+2h', '2020-01-02T15:01:01-01:00')|
|disallow access before this time (e.g. '+2h', '2020-01-02T15:01:01-01:00')|
|The object is automatically deleted after this period. (e.g. '1h30m', '24h', '720h')|
|if true, the access will be public. |
|if true, creates and registers access grant|
|if true, returns a url for the shared path. implies |
Notice that by default, only download (read) and list operations are allowed.
--readonly flag is set to false, uploads and deletes are allowed.
Generate credentials to use with our S3 multitenant gateway: Getting started
Notice the endpoint generated for Gateway MT:
You can also generate a URL to share your projects/buckets/objects
Note that specifying
--base-url is optional, but the
--not-after is mandatory. If you do not want to specify date or offset - you can specify
See share for details.
Also note that the URL uses the same Gateway MT access key, so if you have that already, you don't necessarily need to run this command to generate a shareable link.
https://link.storjshare.io/s/<access key>/<object path>
To download content directly, use
/raw/ in Linkshare URL ex:
To view the object location map, use
/s/ in Linkshare URL ex:
For more detail, visit the documentation on Static site hosting.
While you may share individual objects with the above linksharing instructions, you must share a bucket or object prefix for webhosting. Your web address will render the index.html file.
Use the generated DNS info to connect your domain name to your shared objects.
Note you can use any hostname in place of
www.mysite.com in the example. The base-url is also optional.