Ah it looks like I got it working. Here are steps I did:
1 - Downloading files (uplink and gateway):
curl -L https://github.com/storj/gateway/releases/latest/download/gateway_linux_amd64.zip -o gateway_linux_amd64.zip && unzip gateway_linux_amd64.zip
curl -L https://github.com/storj/storj/releases/latest/download/uplink_linux_amd64.zip -o uplink_linux_amd64.zip && unzip uplink_linux_amd64.zip
chmod 755 gateway
chmod 755 uplink
2 - Setting up (uplink):
./uplink setup
- Create a bucket by running
./uplink mb sj://example
(See Using the Uplink CLI - Storj Docs for other commands like deleting/removing a bucket, listing files inside a bucket, etc.)
3 - Setting up (gateway):
screen
(to let gateway run on another screen)./gateway setup
(See Setting Up a Self-Hosted S3 Compatible Gateway - Storj Docs for more detail)./gateway run
- Make sure to copy
Endpoint
,Access key
, andSecret key
to somewhere safe (like a password manager)
4 - Setting up (Nextcloud):
- Open External storages setting page
- Input a folder name
- Select
Amazon S3
forExternal storage
- Select
Access key
forAuthentication type
- Input
example
forBucket
(See above: 2.2) - Input
127.0.0.1
forHostname
(See above: 3.4) - Input
7777
forPort
(See above: 3.4) - Leave
Region
blank - Check
Enable Path Style
- Paste your
Access key
(See above: 3.4) - Paste your
Secret key
(See above: 3.4) - Click three-dot-icon for advanced settings
- Click check mark to complete the configuration
And the external folder should be available!
If you want to sync the folder to your local machine, open the Nextcloud client and follow the instruction displayed there.
Please make sure that syncing the external storage with other machines multiplies the bandwidth. Also storing a bunch of tiny files can be costly (See: Nextcloud on Storj? - #17 by kevink).
On Tardigrade there are three ways of calculating fees (Object Storage fee, Per Object Fee, Bandwidth Fee). I would recommend you to read https://documentation.tardigrade.io/pricing/billing-and-payment carefurelly before you move your files to the external folder on your Nextcloud instance.
While Storj have arrived at 1.0 the procedures written above are subject to change after future release. Please follow https://documentation.tardigrade.io/ periodically for available changes.
Also according to @kevink: