Please see my another post at the bottom of this thread:
Please help fixing this Strict-Transport-Security error in Nextcloud - Apps and Virtualization - TrueNAS Community Forums