We have a webinar walking you through it, but you can also refer to the steps below:
The things you need here are:
- A Storj bucket
- S3 compatible credentials
- Linksharing credentials for public access
Because of the linksharing credentials part, the easiest way to generate all of the things you need is through our uplink CLI.
After downloading and installing the (so that ls, mb, cp, etc work), you can use the following steps:
In subsequent steps it'll be referred to as BUCKET.
To generate S3 compatible credentials Access Key ID and Secret Key, run
Along with the credientials, the output will have the AWS endpoint you'll need to set which is https://gateway.storjshare.io.
Storj doesn’t have the same sort of concept of public buckets that S3 has. We support public access, but it’s able to be more fine-grained than at the bucket level. To generate LINKSHARINGKEY you can do
You’ll get a Browser URL, but the URL is not quite right. It will be of the form https://link.storjshare.io/s/LINKSHARINGKEY/BUCKET/. To make the content embeddable, swap the /s/ for /raw/. This url should be used as the AWS alias host or AWS url.
In the PixelFed environment, we'll use this url for AWS_URL. Set PF_ENABLE_CLOUD=true and FILESYSTEM_DRIVER=s3
Your PixelFed S3 Configuration will look like this
Reload config and restart PixelFed services