HTTPS for Nextcloud16


I have installed nextcloud16 using viewtopic.php?f=189&t=10351. I am able to create a postgresql database and able to login to nextcloud protal via http locally and over the internet.

I have tried to change the settings in the config file for nextcloud also for https and if i do so i get an error that please check the config.sample file for proper configuration.

using http i am able to reach the page by it redirects from asustor login page

Over the internet i am able to access asustor page via…but when i try to access nextcloud it redirects to

I have try to change the virtualhost settings, but i was not sure exactly, so revert it back…

This is what i have tested till now for the config file

array (
0 => ‘’,
1 => ‘
‘datadirectory’ => ‘/volume1/Web/nextcloud16/data’,
‘dbtype’ => ‘pgsql’,
‘version’ => ‘’,
‘overwrite.cli.url’ => ‘’,
‘overwriteprotocol’ => ‘https’,

I know i am doing something wrong, but not sure what. I have already opened port 443 in my router. If somebody can help me with this that would be great