Once the functional aspects are setup properly, I will have time to worry about non functional requirements (security / backup, restore / monitoring / performance / cost efficiency / high availability / etc..)
heres the steps I followed:
- https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04
I didnt worry about UFW as I will be using DigitalOcean cloud firewall rules to secure hosts at a network level for now. host level firewall is a possible future addon - https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-nextcloud-on-ubuntu-18-04
- Have the block storage attached to the droplet
- sudo snap stop nextcloud
- https://www.digitalocean.com/community/questions/configuring-volumes
- sudo mkdir -p /media/nextcloud_data
- sudo mount -o discard,defaults,noatime /dev/disk/by-id/<disk-id> /media/nextcloud_data
- sudo echo '/dev/disk/by-id/<disk-id> /media/nextcloud_data ext4 defaults,nofail,discard 0 0' | sudo tee -a /etc/fstab
- read through https://askubuntu.com/questions/882625/nextcloud-snap-with-data-directory-on-external-harddrive
- sudo mv /var/snap/nextcloud/common/nextcloud/data ./nextcloud_data/data
- sudo vi /var/snap/nextcloud/current/nextcloud/config/config.php
- sudo snap start nextcloud
- go to the application and do a quick sanity check as admin.
- This is a good time to take a backup for droplet as you may want to restart the journey from here in case
Additional reading material:
No comments:
Post a Comment