
To access your files via Nextcloud from the internet, you'll need a reverse proxy.
In this tutorial, we'll use SWAG, which you can also install on Unraid.
To access Nextcloud from the internet, you'll need a domain name whose IP address points to your external IP address.
To begin, point the root of your domain, as well as your "www" subdomain, to your external (WAN) IP address.
Next, you'll need to create a "nextcloud" subdomain on your domain.
In our case, we have a domain "informatiweb-tuto.net" at OVH, which we use for some tutorials.
At OVH, go to "Web Cloud -> Domain Names -> DNS Zone" and click Add Entry.

Create a DNS record of type:

If you choose type "A", you will need to indicate:

If you choose the "CNAME" type, you will need to indicate:

Then, click on: Validate.

As OVH tells you, the entry is added instantly to your domain's DNS zone, but DNS propagation (to ISPs' DNS servers, for example) can take up to 24 hours.

Your "nextcloud" subdomain appears in your domain's DNS zone.

Before installing the reverse proxy, you need to change the port used by Nextcloud so that it doesn't conflict with the one used by SWAG (reverse proxy).
For now, in our case, Nextcloud uses port 4443 for its web interface.

Click on the Nextcloud icon, then on: Edit.

Change the port of "WebUI" to "444", then click: Apply.

Once the container update is complete, click: Done.

As expected, the Nextcloud port has changed.

Once the "nextcloud" container is updated, you must also update the Nextcloud "config.php" file.
To do this, click the Nextcloud icon, then click Console.

In the console that appears, type the command below to modify the Nextcloud "config.php" file.
Bash
nano /config/www/nextcloud/config/config.php
As you can see, the old port number (in our case: 4443) is visible in 2 places.

Change this port number to 444, then save the changes using the keyboard shortcut "CTRL+O".

Confirm the save by pressing Enter.

Changes have been saved.
Exit "nano" by pressing "CTRL+X".

To access Nextcloud via swag, you must use the same Unraid custom network for "swag" as well as your other containers.
In this case, for: swag, nextcloud, and mariadb. Otherwise, Nextcloud will no longer be able to connect to the "MariaDB" database server it needs for its database.
To begin, install and configure "swag" by following our tutorial: Unraid 6.9.2 - SWAG - Install a reverse proxy (SWAG).
Then, come back here and you will need to specify the same virtual network for two other Docker containers (mariadb and nextcloud), as you will see later in this tutorial.

Modify your "nextcloud" container.

On the "Update Container" page that appears for your "nextcloud" container, select "Custom: iwnetwork" for the "Network Type" parameter.
Note: "iwnetwork" is the name of our custom network created in Unraid and also used by "swag".

Now, Nextcloud will use your custom subnet (in our case: iwnetwork) whose network ID is "172.18.0.0/16" in our case.

At the bottom of the page, click on: Apply.

Do the same for your "mariadb" container (so that Nextcloud can continue to access your "MariaDB" database server).

To do this, click on the "mariadb" icon, then on: Edit.

Again, select your custom subnet for the "Network Type" parameter of this "mariadb" container.

At the bottom of the page, click on: Apply.

Now your 3 containers (mariadb, nextcloud and swag) are using the same subnet.

NAS 1/30/2026
NAS 12/4/2025
NAS 3/11/2026
NAS 5/6/2026
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
You must be logged in to post a comment