LinuxServer.IO I love your dockers. Thanks so much for your work.
How was the /nextcloud URL base so elegantly taken out in the docker config?
I just reverted to installing NextCloud on Ubuntu Server because of the lack of LDAP support in this docker.
I am trying to achieve 2 things and I am hoping you all can help:
1) I have a permanent redirect on my nextcloud apache server to forward from / to /nextcloud I accomplished this by adding the following line to my default-ssl.conf fil:
RedirectMatch ^/$ /nextcloud/
Now I can access my instance at cloud.mydomain.com which ultimately redirects to https://cloud.mydomain.com/nextcloud
When I was using your docker, I could authenticate in the app by simply entering "https://cloud.mydomain.com" but with my above config I must enter the url base in order to log into the app. Not a big deal.... but I am more curious than anything how to configure it the way you did.
2) My current data folder is located at /var/www/nextcloud/data on the local filesystem of the VM. I want to create a symlink in that directory and point to a share on my unraid... but I haven't the slightest idea the best way to accomplish that in Linux.
Any assistance with this would be much appreciated.
Current config.php, where 192.168.0.205 is the nextcloud ubuntu VM on hyperv and 192.168.0.31 is the mariadb docker on my unraid
<?php
$CONFIG = array (
'instanceid' => 'xxxxxxxxxxxx',
'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'trusted_domains' =>
array (
0 => '192.168.0.205',
1 => 'cloud.mydomain.com',
),
'datadirectory' => '/var/www/nextcloud/data',
'overwrite.cli.url' => 'https://cloud.mydomain.com',
'overwritehost' => 'cloud.mydomain.com',
'overwriteprotocol' => 'https',
'dbtype' => 'mysql',
'version' => '12.0.0.29',
'dbname' => 'nextcloud',
'dbhost' => '192.168.0.31:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'admin',
'dbpassword' => 'xxxxxxxxxxxxxx',
'installed' => true,
);
Also my nginx redirect is identical to yours in the tutorial.