Connecting the Nextcloud Box to the Internet

michag86 edited this page Apr 1, 2017 · 12 revisions

1. Point your domain to your network

  1. Register for a service which redirects a domain name to your home network
  2. Open a browser and go to the URL used to manage your router/firewall
  3. Open both port 80 and port 443
  4. Forward both ports to the IP used by your Box

If your Internet Service Provider and Router supports IPv6, the Nextcloud Box already has a public IP address. Just look up your IPv6 address (e.g. 2001:0db8:85a3:0000:0000:8a2e:0370:7334) and point your domain to it. Of course this restricts access to your Box to devices/services that support IPv6.

2. Connect to the Box

Follow the instructions at: How to connect to the Nextcloud Box with SSH. Note that this only works AFTER you have initiated and installed your Nextcloud Box via the web interface, see Getting Started

3. Add your external domain to Nextcloud

List the domains you're currently using

# sudo nextcloud.occ config:system:get trusted_domains

Create a new entry

# sudo nextcloud.occ config:system:set trusted_domains 2 --value=your.domain

Note: replace "your.domain" with the domain name registered at step 1 and replace the number 2 with the actual number where the new entry will be created. For a 3rd entry, you would use the number 3

4. Enable HTTPS

See this article

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.