
Nextcloud is a self-hosted open-source file hosting application that lets you store, edit and share files privately using your own server. This article explains how to use Nextcloud with Vultr's Block Storage and Object Storage to maximize the application's storage potential.
Create a new server user account.
Grant the new user sudo privileges.
Switch to the new user.
Request a Free Let's Encrypt SSL certificate using Certbot. Replace cloud.example.com with your linked domain.
To access Nextcloud using the domain, edit the config.php file.
Find the trusted_domain array.
Add your domain as a new entry.
Save and exit the file.
Restart Nginx to load changes.
List all storage devices attached to your server.
Output:
Your first block storage device displays as vdb. Any additional attachments display as vdc, vdd, and so on.
Set the volume disk label to gpt.
Create a new primary partition occupying the full disk space.
Verify the new partition.
Output:
A new vdb1 volume with the type part should display below the main vdb disk.
Create a new directory in /mnt to use as a mount point for volume.
Mount the block storage volume.
Verify the new volume mount point.
Output:
Enable persistent mounting to automatically mount the block storage volume at boot time.
Create a sample text file in the mount directory to confirm read and write access.
Using a web browser of your choice, visit your domain.
Login to Nextcloud.
If you deployed Nextcloud as a OneClick Vultr App, you can find your default credentials on the cloud instance's panel.
Click your username in the upper right corner and select Apps from the drop-down list.
Find External storage support on the Apps list and enable it.
Navigate to your Username again and select Settings.
Under the Administration section, navigate to External Storage.
Click Add storageand select Local from the drop-down list.
Enter your Mount Point in the Configuration field and click the checkmark symbol ✓ to save changes.
A green tick ✅ indicates a successful connection to the mount point.
sample.txt file to confirm read access.You have successfully configured Nextcloud to use Vultr Block Storage and Object Storage volumes. You can connect multiple volumes to store different files per attachment. For more information, please visit the following resources.
0 Comments
Be the first to comment and share your perspective with the community.