Nextcloud Snap install and S3 Storage Bucket
How to install (these have to be run as root):
Make sure it's a fresh install and unplug all devices connected to the instance if the case:
Install nextcloud:
Add storage.config.php file with S3 bucket to
/var/snap/nextcloud/current/nextcloud/config
Note: This will be created with programatic AWS user if the bucket does not exist
Note 2: If files have not generated after snap install nextcloud, start and stop nextcloud or try installing again
Configure user manually via snap: (change the password after)
Add allowed domains to
config.php
in/var/snap/nextcloud/current/nextcloud/config
Update below line with Internet URL:
Restart nextcloud:
Set up certificate either via Let's Encrypt or self-signed
Let's Encrypt:
Point DNS to Server Public IP
Make sure port
80
and443
are openRun command:
To confirm that HTTPs works correctly, point your browser to https://<your subdomain>
. You should see the Nextcloud login page.
Aaaand that’s it. Now you can install the Nextcloud client and point it to your subdomain to sync files and folders directly to your hard-drive.
Restart nextcloud
2. Increase upload size:
Since snap manages the app, one is not able to directly commit changes, it has to do through snap itself. Given the options and commands available in this app, one can just replace underscores with dashes after php in the name of the parameter, like:
And then for the upload size: snap set nextcloud php.post-max-size=16G
or sudo
if is system-wide.
Joplin export:
Export Joplin to Raw Folder
Upload folder to nextcloud
Go on local Joplin Device and navigate to options and syncronization
Go to advanced options and click
Delete local data and re-download from sync target
Note: This will have to be updated with new app passwords since MFA is active for user
Data migration:
Upload Nextcloud backup or data to Nextcloud via web interface
Delete all local
Nextcloud
folders after upload successfulSet up sync clients on devices
Note: If there are any issues with the sync client, update this parameter:
After restart nextcloud:
SNAP Commands for Nextcloud:
OCC:
Disable 2FA
Last updated