Install a NextCloud server using old MacBook Pro
The plan is to install ubuntu OS on MacBook Pro with core 2 due CPU, then install NextCloud as docker container.
Install Ubuntu Server
The installation had been done on MacBook Pro with iSCSI root partition.
Refer to Ubuntu with UEFI iSCSI root on x86_64 for details.
Install NextCloudPi docker
The NextCloudPi docker image has all necessary components to run NextCloud server, and it is easy for start up.
Steps
Installation
Run following command, IP is the IP address of the server itself.
docker run -d -p 4443:4443 -p 443:443 -p 80:80 -v /app/nc/data:/data --name nextcloudpi ownyourbits/nextcloudpi-x86 $IP
Activate
Access URL https://$IP:4443/
, record two pair of user id and password
- NextCloudPi web interface at port 4443
- NextCloud at port 443
Update patches
Login to NextCloudPi web interface (port 4443), execute tasks under Updates.
Set Maintenance Mode off
If there was a failure, server went to maintenance mode, then update config/config.php
accordingly.
'maintenance' => false,
Another method is using NextCloudPi web interface (port 4443), Tools -> nc-maintenance to disable.
Configure incoming access
-
Configure SSL certification using let's encrypt, include new domain name in certificate alias
Install Synology NAS managed Let’s Encrypt Certificate in NGINX
-
Configure NGINX to divert new domain request to this server.
Configure different target based on incoming domain in NGINX
Enable new trust domain
Add the newly registered domain name in NGINX and Let's Encrypt in config/config.php
'trusted_domains' =>
array (
0 => '192.168.0.29',
1 => 'cloud.example.com',
),
Another method is using NextCloudPi web interface (port 4443), config -> nc-trusted-domains to configure.
Clients' configuration
Using CalDAV to add account for Calendar and Contacts.
Install Password Manager App
Local by pass proxy
To by pass proxy, the internal DNS server needs to point the IP address of nextcloud server to internal server IP. For example, add alias for nextcloud server IP in dnsmasq host entry.
After that, needs to install same certificates in proxy into nextcloudpi server. There are quite number of answers in Internet, but none of them works.
End up, I changed the certificates used in apache2 configuration using following steps
References
NextCloudPi dockers for x86 and ARM
NextCloudPi docker for Raspberry Pi
How to get started with NCP docker
HowTo: Add a new trusted domain
Synchronizing with iOS
Synchronizing with macOS