Hi all! I’m new to Nextcloud and what I’ve learned until now is just great!!!
I’m thinking of using Nextcloud for private stuff (me, my family and my friends) but also for my business both self hosted.
I’d like to keep private and work data separate. And first I thought I’d get two separate physical servers, one at home and one in my work place. There the data really would be kept separate.
The other possibility I see is to have only one server with two instances of Nextcloud.
What is the best way of doing this? Are there other ways?
I would also use one instance only (and I really do ).
You can either keep the files in seperate folders, create different groups and allow sharing within every user’s own groups.
You can create group folders as ztein already suggested and you create an extra user account for work if you totally want to split it.
I mean, a secure server is a secure server and what’s secure for your work files, is secure for your family. So why maintain two servers with all the necessary effort to keep them up to date and enhance security over time (with new technologies and new threats arise all the time)?
both playbooks are not yet ready to install two instances of nextcloud on the same server. (sorry for that.)
run the first one on a server gives you a ready to run nextcloud. if you want to have a second instance you have to copy the /var/www/nextcloud folder and the /etc/nginx/conf.d/nextcloud.conf file. create a new database with another prefix than oc_. and modify the nginx nextcloud.conf and the nextcloud/config/config.php files. more or less it should work like this.
or you rename /var/www/nextcloud and /etc/nginx/conf.d/nextcloud.conf and run the playbook again with ansible-playbook nextcloud.yml -e nc_db_prefix='nc_' (not tested. might not work. you have to try.) and of course you need a second fqdn.
i’m currently working on a newer version of the docker playbook to create multiple instances. stay tuned. or try to set it up with portainer.