In the previous tutorial we have discussed NextCloud, starting from its definition, features, and how to implement it in VM Cloud Raya, to one of the extensions uses in using Nextcloud, namely utilizing Collabora Online.
Well, because basically, NextCloud has a very large and wide potential in its use, then in this tutorial, let’s discuss one of the potentials that NextCloud can give us. And of course, this is a game changer for all of you in seeing and using NextCloud in the future.
Yes, we will talk about how to configure S3 Object Storage from Cloud Raya (Storage Raya) so that it can be integrated with our NextCloud service in the VM.
By configuring S3 Object Storage on the NextCloud server, we will get a lot of advantages in terms of storage space.
As we know, by default, NextCloud will use the storage space of our VM as a place to store its files.
By binding NextCloud with S3 object storage, you don’t have to worry about running out of storage space on your VM.
Because basically the NextCloud system doesn’t need a VM specification that is too big, but the only problem is the storage space.
What’s more, this configuration will also separate your content that is in the VM from your content that is in S3 Object Storage. So if our VM goes down for whatever reason, at least you still have access to your S3 bucket.
This is one of the benefits that I think is very, very good.
OK, let’s move on to the implementation.
But actually, before we get into the discussion, there are a few things you should do:
↳ First of all, access your NextCloud dashboard. Make sure you are logged in as an admin.
↳ On the “user icon”, click Apps
↳ Then in the search field, type “External storage”, after which several results will be displayed.
↳ In the External storage support result, change it to enable to activation of the feature.
Okay, now we are ready to add external storage to our NextCloud. According to this tutorial, we will connect Storage Raya with NextCloud.
↳ Now click on the user icon again, then click on Settings.
↳ On the left menu, in the “Administration” section, select External storages. Later the configuration page will appear.
↳ In the “Folder Name” field, enter a name for this external storage directory in NextCloud.
↳ Select Amazon S3, In the “External Storage” dropdown.
For those who are still wondering why we choose Amazon S3, so, Storage Raya itself is an S3-compatible Object Storage service. And by default, NextCloud connects to the Amazon Object Storage service. However, we can still override this by inputting the host from Storage Raya instead.
↳ OK, if so, in the “Authentication” dropdown select the Access key.
↳ Finally, in the “Configuration” field, enter the following fields:
↳ In “Access Key” and “Secret Key”, enter according to the one in your Storage Raya panel.
↳ There is also a field to determine whether this bucket will be shared with certain NextCloud users or available for all users. If you have your own preferences, you can enter the user or group here.
↳ If so, click on the Check icon on the right to save the configuration.
↳ If all the configurations you entered are valid, then you will see a green checkbox appear next to the entry.
OK, the configuration is complete, now let’s check the results.
↳ On the top menu, click on the Files menu item.
↳ The external storage folder that we created earlier will appear in our account’s NextCloud folder list.
↳ Let’s try clicking on the folder to see its contents. But there shouldn’t be any contents, because our bucket is still empty. Unless you have uploaded certain files in this bucket in the Storage Raya panel before.
Now let’s test whether this external storage is really synchronized with our bucket.
↳ Let’s try uploading the file.
↳ Okay, it’s been uploaded, now let’s check the bucket on the Storage Raya dashboard.
↳ And it is well synchronized.
Okay, that’s it, everyone, in this tutorial we’ve both learned about the use of nextcloud extension. Because the nextcloud provides a lot of additional integrations that we can do in it.
Now by combining S3 with nextcloud, you no longer need to worry about storage space that is limited by the storage size of the NextCloud VM, and you are free to upload and delete files according to your needs because Storage Raya already carries a pay-per-use method as well. So you just pay per hour according to the size of the file you have.