Hello!
I’m trying to install Nextcloud on TrueNAS Scale 25.04.2.3.
I followed Nextcloud Deployment | TrueNAS Apps Market but I think the guide is incomplete and not really explaining all the steps…
As suggested (and I agree with that) I created a dedicated user for the app (app_nextcloud).
API Keys:No keys
GID:3003
Home Directory:/var/empty
Shell:/usr/sbin/nologin
Email:–
Password Disabled:Yes
Lock User:No
Samba Authentication:No
SSH:Key not set
Password History:No History
Password Age:–
Last Password Change:–
Password Change Required:No
Allowed Sudo Commands:ALL
Allowed Sudo Commands (No Password):ALL
Along with it it was created the group 3003 called app_nextcloud.
I created an app dataset (/mnt/Archive/ApplicationData/nextcloud/) with 3 child dataset:
/mnt/Archive/ApplicationData/nextcloud/data
/mnt/Archive/ApplicationData/nextcloud/html
/mnt/Archive/ApplicationData/nextcloud/postgres_data
I would like to have ACL for all datasets to be app_nextcloud user as owner@ and group@.
But the guide seems to suggest to set to apps… That is a bit contradictory after advising to create a dedicated user…
I think would be better to let the app run from the dedicated app_nextcloud user.
How to setup the ACL for the parent dataset and the 3 children spo that I can map them with the Storage Configuration from the app edit page ?
Nextcloud AppData Storage (HTML, Custom Themes, Apps, etc.)
---> /mnt/Archive/ApplicationData/nextcloud/html
Nextcloud User Data Storage
---> /mnt/Archive/ApplicationData/nextcloud/data
Nextcloud Postgres Data Storage
---> /mnt/Archive/ApplicationData/nextcloud/postgres_data
In addition, how to tell the app that it has to run using user app_nextcloud ?
In some custom docker images I use for other apps I add env variables (USER_ID and GROUP_ID). Will this work ?
Thanks!