How to Build Your Own Company File Drive with Nextcloud

How-tobeginnerTime to complete:Over 1 hour
  • By CloudRaya Team
  • Updated November 26, 2026
  • Requires Marketplace App, StorageRaya
  • Tested on Nextcloud 35.0.2
A gold-tabbed folder full of documents and photos in front of a glowing cloud, receiving photos from a phone, linked to a storage cylinder and a locked share link.
On this page

Nextcloud is an open source file platform that works like a private Google Drive or Dropbox. This tutorial builds a file drive for a small team. Your office staff and your field team get their own accounts, job photos go straight into object storage, and you share a finished report with a customer through a link protected by a password.

The screenshots in this tutorial come from Cool Breeze AC Care, the fictional air conditioner service company from How to Launch a Company Profile Website with WordPress. The office keeps service reports, and technicians such as Toby Finch take photos at every job. Today Toby cleaned the air conditioners at Hayes Family Farm, and the customer, Marla Hayes, wants a copy of the report. You can follow along with files of your own.

To get Nextcloud running quickly, this tutorial uses the Nextcloud app from the CloudRaya Marketplace. A Marketplace app is ready to run: you do not need to create a server or install anything yourself, CloudRaya runs it for you and gives it an HTTPS address, and you can move to a bigger package later without deleting the app. If you prefer to install Nextcloud yourself, follow the official installation guide and continue from Step 2.

Prerequisites

  • Either an existing Nextcloud installation, or a CloudRaya account with enough Cloud Credit to deploy it from the Marketplace. Marketplace apps are billed monthly, based on the package size you choose, and you cannot pay for them with CloudRaya Coins. See How to Top Up Cloud Credit and Serverless Containers: Deployment for details.
  • Access to StorageRaya in the same CloudRaya account, to store the photos of your team.
  • A domain or subdomain you can manage in your DNS provider, for example files.yourdomain.com. This is recommended, not required.
  • An Android phone or iPhone, to try the mobile app.

Step 1: Get Nextcloud Running

If you have not installed Nextcloud yet, install it first by following the official installation guide, then continue with Step 2.

If you need a quick solution with a premade app, deploy it from the CloudRaya Marketplace instead. This is the option used in the rest of this tutorial.

  1. In the CloudRaya dashboard, under Other Product, click Marketplace.
  2. Search for Nextcloud, then click View Details.
  3. Click Deploy Now.
  4. Keep the latest Application Version, and enter a unique Application Name, for example company-drive.
  5. Choose a Deployment Package. Small is a good start for a team that shares files every day. Nano is enough for 1 to 3 people with light use. You can move to a bigger package later without deleting the app, but you cannot move to a smaller one.
  6. Click Deploy App. You are redirected to My Apps.

Wait until the status of the app changes to Running. The first start takes a few minutes.

Step 2: Log In and Secure the Admin Account

Nextcloud creates an admin account for you during deployment. Its password is in the CloudRaya panel.

  1. In My Apps, click the app name and open the Environment tab. Copy the admin password shown there.
  2. Open the General tab and open the address of your app in a new tab. It looks like https://<app-id>.cloudraya.app.
  3. On Log in to Nextcloud, enter admin as the Account name or email, paste the password, and click Log in.
  4. A welcome window introduces Nextcloud. Close it with the X.

The password from the panel is only used for this first login. Change it now to one that only you know:

  1. Click your avatar at the top right, then Personal settings.
  2. In the left menu, click Security.
  3. Under Password, enter the Current password and a New password, then click Change password.
The Security page in Nextcloud Personal settings, with the current and new password filled in and the Password is secure check
Replace the password from the panel with one only you know.

Save the new password in your password manager. If your team does not have one yet, see How to Share Your Team's Passwords Safely with Vaultwarden.

Your app cannot send email yet, so Forgot password? on the login page does not work. Keep your admin password safe.

Changing the password in the panel later has no effect. The password is managed inside Nextcloud from now on.

Step 3: Give Your Drive Its Own Address (Recommended)

Your team opens this address every day, and your customers see it in every share link. A short address on your own domain, such as files.yourdomain.com, is easier to remember and to trust. You can skip this step and keep the .cloudraya.app address.

First, add the domain to the app:

  1. In My Apps, click the app name and open the General tab.
  2. In the Domain Aliases section, click Add Domain.
  3. Enter your subdomain, for example files.yourdomain.com. Leave HTTPS on.
  4. Click Add Domain. The dialog shows a CNAME record.
  5. In your DNS provider, add the CNAME record exactly as shown.

Wait until the status of the domain changes to Secured. This can take from a few minutes to a few hours, depending on your DNS provider.

Then tell Nextcloud to use the new address:

  1. Open the Environment tab of the app.
  2. Click Add Variable, and set App Container to nextcloud.
  3. Enter NEXTCLOUD_URL as the Key, and your full domain as the Value, including https://, for example https://files.yourdomain.com.
  4. Click Add Variable.
The Add Variable dialog in the CloudRaya panel with the key NEXTCLOUD_URL and a custom domain as the value
NEXTCLOUD_URL tells Nextcloud which address to use in links and logins.
Add NEXTCLOUD_URL only after the domain shows Secured. If you add it earlier, Nextcloud sends you to an address that does not work yet, and you cannot log in until the domain is ready.

The app redeploys automatically to apply the variable. Wait until the status returns to Running, then open your new address and log in again. The old .cloudraya.app address still works, but it now sends visitors to your own domain.

To go back to the default address, delete the NEXTCLOUD_URL variable completely. Do not leave it empty.

Step 4: Create Your Team's Accounts

Groups make sharing simple: you share a folder with a group once, and everyone in it gets access. This example uses two groups, Office for the people who manage reports and Technicians for the field team.

  1. Click your avatar at the top right, then Accounts.
  2. Next to Groups, click +. In Group name, enter Office and click the arrow. If Nextcloud asks for your password, enter it and click Confirm. Add a second group named Technicians the same way.
  3. Next to your own account, click the pencil icon. Enter your name as the Display name, add the Office group under Member of the following groups, and click Save. Your teammates see this name instead of admin.

Then create an account for each teammate:

  1. Click + New account.
  2. Enter an Account name for logging in, for example toby, and a Display name, for example Toby Finch.
  3. Enter a Password. You give it to your teammate yourself, because the app cannot send email.
  4. Under Member of the following groups, select Technicians.
  5. Leave Admin of the following groups empty, and keep Default quota.
  6. Click Add new account.
The New account form in Nextcloud with the account name toby, the display name Toby Finch, and the Technicians group
Each teammate gets their own login. The group decides what they can open.

Only the admin account can change settings. Your teammates can work with files, but their menu has no Administration settings or Accounts.

Step 5: Store Team Photos in StorageRaya

Job photos add up quickly. Instead of keeping them on the disk of your app, you can store them in StorageRaya, the S3-compatible object storage of CloudRaya. Your team sees an ordinary folder in Nextcloud, and the files live in a bucket that grows with your needs.

Create a bucket

  1. In the CloudRaya dashboard, under Storage, click StorageRaya, then click + Add Bucket.
  2. Enter a Bucket Name, for example coolbreeze-photos. Use lowercase letters, numbers, and hyphens only.
  3. Choose the Server Location, for example ID - Jakarta, ID - jak01.
  4. Keep Restrict File Listing, so nobody can browse the bucket from the internet.
  5. Set a Bucket Limit in GB, then click Save.
The Add Bucket dialog in StorageRaya with the bucket name coolbreeze-photos, the Jakarta location, and Restrict File Listing selected
Restrict File Listing keeps the bucket private.
After you save, a window shows the Secret Key of the bucket. It is shown only once. Copy it now, together with the Access Key, and store both in your password manager. If you lose the secret key, Reset Key creates a new pair, and every app that uses the old keys stops working until you update them.

On the card of the new bucket, note the Endpoint, for example https://s3-jak01.storageraya.com. You need it in the next part. See Create a Bucket and Access and Credentials for details.

Connect the bucket to Nextcloud

This app comes with external storage support already turned on, and with a ready storage entry named S3 (Configure Me). You only fill it in.

  1. Click your avatar at the top right, then Administration settings.
  2. In the left menu, under Administration, click External storage.
  3. In the row S3 (Configure Me), click the pencil icon.
  4. Fill in the Edit storage window:
  • Folder name: the name your team sees, for example Unit Photos.
  • Restrict to: select the groups Office and Technicians. Without a restriction, every account can open the folder.
  • Bucket: the name of your bucket, for example coolbreeze-photos.
  • Hostname: the endpoint of your bucket without https:// and without the bucket name, for example s3-jak01.storageraya.com.
  • Port: 443.
  • Region: the region of your bucket, for example jak01.
  • Turn on Use HTTPS and Use Path Style.
  • Access key ID and Secret access key: the keys of your bucket.
  1. Click Edit to save.
The Edit storage window in Nextcloud with the folder name Unit Photos, the Office and Technicians groups, and the StorageRaya bucket settings
The hostname is the endpoint only, without https:// and without the bucket name.

Point at the icon at the start of the row. It shows Connected when Nextcloud can reach your bucket.

The External storage list in Nextcloud with the Unit Photos folder restricted to Office and Technicians, and the Connected status
Connected means the bucket is ready to use.

Keep Allow people to mount external storage off, so only you decide which storage your team can use.

Now open Files. The Unit Photos folder is there, with a different icon from your other folders. Upload a few photos to it with + New, then Upload files.

The Unit Photos folder in Nextcloud with three photos of an air conditioner job at Hayes Family Farm
These photos are stored in your StorageRaya bucket, not on the disk of your app.

Files in Unit Photos do not count toward the storage shown at the bottom left of Files, because they are not on the disk of your app. Files in your other folders stay on the disk of the app.

Step 6: Share a Folder with Your Team

Unit Photos is already shared with both groups. For other files, you share a folder with a group. Here the office shares a Service Reports folder with all technicians, so they can read the reports and add their own.

  1. In Files, click + New, then New folder, and name it Service Reports.
  2. Open the folder and upload a report, for example a PDF.
  3. Go back to All files. In the row of Service Reports, click the share icon. The Sharing panel opens.
  4. Under Internal shares, type Technicians in Type names or teams, and select the group.
  5. Choose Allow editing, so technicians can add, change, and delete files in this folder.
  6. Click Save share.
The Sharing panel of the Service Reports folder in Nextcloud, shared with the Technicians group with Can edit permission
Share once with a group, and everyone in it gets access.

When Toby logs in, both folders are in their own Files: Service Reports, shared by the office, and Unit Photos, from StorageRaya.

Toby's Files page in Nextcloud with the shared Service Reports folder and the Unit Photos folder
A teammate's view: the shared folder and the photo folder are ready to use.

If you share with a group, people you add to the group later get access automatically.

Step 7: Upload Photos Straight from Your Phone

Technicians take photos on site. With the Nextcloud mobile app, they upload them straight into Unit Photos, without sending them over chat first.

  1. Install the Nextcloud app from Google Play or the App Store.
  2. Open the app and tap Log in. In Server address, enter the address of your drive, for example https://files.yourdomain.com, and tap the arrow.
  3. The browser opens your login page. Log in with your own account name and password.
  4. On Account access, tap Grant access. When you see Account connected, go back to the app.
The Account access page of Nextcloud on a phone, with the Grant access button
Grant access connects the mobile app to your account.

To upload a photo:

  1. In the app, open Unit Photos.
  2. Tap +, then Upload files to choose a photo from your phone, or Upload from camera to take a new one.
The Unit Photos folder in the Nextcloud mobile app with four photos, including one just uploaded from the phone
The new photo is in the bucket, and the office sees it right away.

The office sees the new photo in the same folder in the browser right away.

Step 8: Share a Report with a Customer

Your customer does not need an account. You send them a link to one file, protected by a password and valid for a few days.

  1. Open Service Reports. In the row of the report, click the share icon.
  2. Under External shares, click + next to Create public link. A Share link is created right away, with View only.
  3. Next to the link, click the ⋯ menu, then Customize link.
  4. In Share label, enter the name of the customer, for example Marla Hayes. The label helps you find this link later.
  5. Turn on Set password and enter a password.
  6. Turn on Set expiration date and choose a date, for example one week from today.
  7. Click Update share.
The Share link settings in Nextcloud with the label Marla Hayes, a password, and an expiration date
A password and an expiration date keep the report private.

Click the copy icon next to the link, and send the link to your customer. Send the password in a different way, for example by phone or text message, not in the same email as the link.

When your customer opens the link, Nextcloud asks for the password first.

The This share is password-protected page with the password field and the Submit button
Without the password, the link shows nothing.

After the password, the customer sees the report in the browser, without an account.

A service report from Cool Breeze AC Care for Hayes Family Farm, open in the browser through the share link
Your customer reads the report without creating an account.

After the expiration date, the link stops working. To stop it earlier, click the ⋯ menu next to the link, then Unshare.

Verification

  • You log in with your own password, not the password from the panel.
  • If you set up a domain, your app opens at your own address with HTTPS, and the old .cloudraya.app address sends you there.
  • In External storage, the Unit Photos row shows Connected.
  • A technician sees Service Reports and Unit Photos in their Files, but no Administration settings.
  • A photo uploaded from the phone appears in Unit Photos in the browser.
  • The customer link asks for a password and then shows the report.

Troubleshooting

The app stays in deployment or shows Failed: give it a few minutes, as the first start can take a while. If the app still does not come up, email our support team and include the app name.

The login says the password is wrong: for the first login, use admin and the password from the Environment tab. After you change it in Step 2, only the new password works.

You cannot log in after adding NEXTCLOUD_URL: the domain is probably not Secured yet. Wait until it is, then open the new address. If you need to get in right away, delete the NEXTCLOUD_URL variable, wait for the app to return to Running, and log in at the .cloudraya.app address.

The domain stays at the same status for a long time: check that the CNAME record in your DNS provider matches the record shown in the dialog, and that its host is exactly your subdomain. DNS changes can take time to spread.

Unit Photos shows an error instead of Connected: check the Hostname first. It must be the endpoint only, for example s3-jak01.storageraya.com, without https:// and without the bucket name. Then check the Bucket, the Region, and both keys. If you reset the keys of the bucket in StorageRaya, enter the new pair here.

A teammate does not see Unit Photos: check that their account is in one of the groups under Restrict to.

A teammate does not see Service Reports: check that their account is in the Technicians group, or share the folder with them directly.

The mobile app cannot connect: check that the address starts with https:// and matches the address you open in the browser.

Forgot password? does not send an email: this app cannot send email until you set up an email server (see Next Steps). As the admin, you can set a new password for a teammate in Accounts, with the pencil icon next to their name.

Next Steps

  • Turn on two-step login for the admin account in Personal settings, then Security, with TOTP (Authenticator app). First click Generate backup codes and keep the codes somewhere safe outside Nextcloud. Without your phone or a backup code, you cannot log in again.
  • Install the Nextcloud desktop app on the computers of your office, so the shared folders sync like a normal folder on the computer.
  • Set up email in Administration settings, then Basic settings, under Email server, so Nextcloud can send password resets and share notifications.
  • Explore apps such as Calendar, Contacts, and Talk from Apps in the avatar menu.
  • Watch the CPU and memory usage of your drive, and move to a bigger package when your team grows. See Serverless Containers: Monitoring & Logs and Serverless Containers: Scaling & Lifecycle Management.
  • Learn more in the official Nextcloud user manual.
  • Explore other ready-to-run apps for your business in the Marketplace Apps tutorials.

Conclusion

Your team now has its own file drive on your own address. Each person logs in with their own account, groups decide who sees which folder, job photos go straight from the phone into StorageRaya, and customers get their reports through a link with a password and an end date, without an account.