I found another great (if slightly outdated) guide for a secure installation of NextCloud inside an iocage jail running on a FreeNAS server, here:
https://www.samueldowling.com/2018/12/08/install-nextcloud-on-freenas-iocage-jail-with-hardened-security/
I use FreeNAS, v11.2-U5 currently, so this worked great for me. But I'm in a similar situation now. I have my NextCloud up and running, and invited some of my friends to create logins on it. I've set up some shared public folders of data for them, and let them use it to store their personal content. I have a basic IM chat plug-in working in it so users can chat with each other if they're online at the same time. But the big missing piece is a message forum. That would turn it into the modern equivalent of the old dial-up BBS, and I think would make it a really attractive web site for my buddies to visit on a regular basis.
I went down the "rabbit hole" of trying to get a Discourse forum server running on the box and integrating it with NextCloud. I got DIscourse running in its own virtual machine running Ubuntu Linux server on top of my FreeNAS, but it all came apart trying to get it to integrate with NextCloud. NextCloud has a plug-in that's supposed to allow single sign-on between it and DIscourse, but I'm totally confused what's required to make it work? I just want users to start out on my NextCloud, sign in, and then have seamless access to message forums by clicking a menu bar link. I hoped maybe someone did this with Flarum already, so came here to see ..... but not seeing much info here either?