Uncategorized

Nextcloud: The easy way.

It’s pretty snappy.. really.

Assuming you’ve already got an install of Ubuntu 18/20 LTS – or any distro that supports snapd…

You literally just run: sudo snap install nextcloud

..and now you can create an admin by browsing to port 80 on the host.

Not the preferred way to secure web traffic, but you can rely entirely on the snap and run:

sudo nextcloud.enable-https lets-encrypt

If ports 80 and 443 are open and forwarded with DNS set accordingly, your install will now be accessible over HTTPS.

–For https to work so easily, you first need to edit config.php found in /var/snap/nextcloud/current/nextcloud/config/ ..near the top, find “trusted_domains” and add your FQDN to the array. snap restart nextcloud, then make sure DNS is good.

It’s better to install NGINX and configure a reverse proxy to port 80 on the Snap host – both can be on the same host, but it’s typically best to have a separate host tuned and secured for NGINX facing the web. One of my first blog posts gives details on configuring a reverse web proxy using NGINX.

I feel like I should add information on setting up Virtual Box on Windows 10- or enabling Hyper-V to build your own Ubuntu system inside of your PC.. but Google will get you there quickly if you’ve read this far.

Thanks for reading..

Joe

Leave a Reply