Setup your S3 gateway by running the following command and following the instructions provided by the wizard.
Enter the numeric choice or satellite address corresponding to the satellite you’ve created your account on.
The satellite address should be entered as <nodeid>@<address>:<port> for example: 12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs@eu1.storj.io:7777, or just use the number from the list.
root@6255deca2f353900013ffbe1:~# gateway setup
Select your satellite:
Enter number or satellite address as "<nodeid>@<address>:<port>": 1
Enter your API key: 1dfJ8UityiNP47FV2Nu3FdEBF1vj8buzKM5X9L24Cudm4kpRzY45AfE5UTjmKQRaYzyYd1eRnXYykjUWgAEfTrrzpu77JXbBWEDgaKqwQfeBx1PH4jYn
Enter your encryption passphrase:
Enter your encryption passphrase again:
With your permission, Storj DCS can automatically collect anonymized analytics information from your S3 Gateway and send it to Storj Labs (makers of Storj DCS) to help improve the quality and performance of our products.
Do you agree to submit such information to Storj Labs (y/N): n
You can use the Minio caching technology in conjunction with the hosting of a static website.
The following example uses /mnt/drive1, /mnt/drive2 ,/mnt/cache1 … /mnt/cache3 for caching, while excluding all objects under bucket mybucket and all objects with ‘.pdf’ extensions on a S3 Gateway setup. Objects are cached if they have been accessed three times or more. Cache max usage is restricted to 80% of disk capacity in this example. Garbage collection is triggered when the high watermark is reached (i.e. at 72% of cache disk usage) and will clear the least recently accessed entries until the disk usage drops to the low watermark - i.e. cache disk usage drops to 56% (70% of 80% quota).
Export the environment variables before running the Gateway: