Binding NextCloud with CloudRaya S3 Object Storage as External Storage Mount

How can we help?
< All Topics

Binding NextCloud with CloudRaya S3 Object Storage as External Storage Mount

In the previous tutorial we have discussed NextCloud, starting from its definition, features, and how to implement it in VM CloudRaya, to one of the extensions uses in using Nextcloud, namely utilizing Collabora Online.

Well, because  NextCloud has a very large and wide potential in its use, hence 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 Clou Raya (Storage Raya) so that it can be integrated with our NextCloud with CloudRya VM.

The Benefits

By configuring S3 Object Storage on the NextCloud server, we will get a lot of advantages in terms of storage space.

As we know,  NextCloud will use the storage space of our VM as a place to store its files, by default.

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 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:

  1. Firstly, have a VM Cloud Raya that has NextCloud installed in it. If you don’t know the easy way to install NextCloud in a Cloud Raya VM, you can check the following tutorial.
  2. Have Object Storage service in Cloud Raya and have created the bucket. If you are not familiar with the S3 Object Storage service from CloudRaya, you can also check the following tutorial.


  • 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.

↳ Then, 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:

  • Under “Bucket”, enter the name of the bucket from Storage Raya you created.
  • Under “Hostname”, enter the hostname of Storage Raya. To see it, you can check the link in the “Endpoint” section on your Storage Raya page.
  • Under “Port”, enter 443.
  • In “Region”, enter the region of your Storage Raya, to find out you can enter the subdomain of this hostname, which is s3-jak01.
  • Under “Enable SSL”, check this option.
  • For other checks, leave the defaults.

↳ 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.

↳Finally, it is well synchronized.


all in all, now we’ve both learned about the use of nextcloud extension with CloudRaya. 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.

Find more insight in our knowledge base page for tutorials and technology updates and knowledge in our blog. or even better, you can live stream tutorial from our Youtube channel.

Table of Contents

Ready, Set, Cloud

Ready, Set, Cloud