NextCloud Configuration

NextCloud Configuration

Install NextCloud on Synology

Installing nextcloud on your Synology NAS

full course
  1. Setup and Install NextCloud On Synology
  2. NextCloud Configuration
  3. Login to NextCloud

We’ll need to do a few things before we can actually start using nextcloud.

Edit config.php

First stop the nextcloud containers (from the /nextcloud directory)

sudo docker-compose down

Now change to the nextcloud configuration directory

 cd /volume1/docker/nextcloud/config/

and use nano (or vi) to edit the config.php file

sudo nano config.php

First, confirm that the trusted_domains looks correct. If it doesn’t, edit it to make it look like this:

'trusted_domains' =>
  array (
    0 => '',
    1 => '${your nas ip}',
    2 => '',

I can’t remember if the trusted domains actually works in docker-compose or not. Either way, you want to make sure that the domain you plan to use in the reverse proxy AND the ip of the NAS are present.

Finally, you want the links in nextcloud to look correct (and be accessible from outside your network), so update and add these entries

'overwrite.cli.url' => '',
'overwriteprotocol' => 'https',

Finally, you WILL want SMTP configured here so that you can add new users, user forgot password features, etc… Add the appropriate SMTP configuration values for your mail server. (You can also do it in the UI after we login)

Setup Reverse Proxy

This is going to be very similar to the other reverse proxy setup directions.

Open Control Panel/Application Portal/Reverse Proxy. Click Create. Add your config

Make sure to check enable HSTS and enable HTTP/2 (these seem to impact the ability to login via reverse proxy).

Update your certificate in Control Panel/Security/Certificate. Click add, replace existing certificate, Get a certificate from Let’s Encrypt. Add the domain name, email and all of the previous domains you used in subject alternative name. Add your new domain in subject alternative name as well (nextcloud.your_domain).

Finally, go to your domain hosting manager console. Add a new CNAME entry for nextcloud. Point it to your home domain.

This should be everything you need in order to access your nextcloud server at your domain via https. This is all required in order to use the mobile app (and allow easy access for your users).

0 comments on “NextCloud ConfigurationAdd yours →

Leave a Reply

Your email address will not be published. Required fields are marked *