For learning I'd recomnend the FreeBSD handbook:
A constantly evolving, comprehensive resource for FreeBSD users
docs.freebsd.org
and practically anything my Michael W. Lucas, starting with "Absolute FreeBSD":
And of course the TrueNAS documentation for ZFS related things, sharing, all the TN specific features.
One of the major problems with support in this forum seems to me that more and more questions do not deal with TrueNAS at all. As I wrote a jail is a completely separate FreeBSD virtual machine. You can install anything in there. And people come asking for help with Unifi, Nextcloud, ...
In your case I just happen to run a Unifi controller myself. That's why I knew about the different port. And of course I am not blaming you for coming here for help. But there is a Unifi support forum. Just saying
Yesterday someone else came up with a Python/Django based document management system he tries to install. How the heck is anyone on this forum supposed to know? Unless by accident he/she runs that software.
I think that we are in danger of running into a larger problem of scale here. How wide and how deep can we as a community go with third party software - which (I am repeating myself) has absolutely no connection to TrueNAS whatsoever.
Most of the regulars who help here including myself are experienced system administrators who have seen quite a diverse set of server and application software and of course I will continue to help where I can. Possibly it is time for a document with the fundamentals about jails, FreeBSD and how to install third party apps. And how this open source thing works in the first place and that in many cases there are communities around product X that may be a better address.
Just a couple of thoughts. I am glad I could help, and of course I encourage you to come back with any further questions.
Kind regards,
Patrick