I've made some modifications to /usr/local/etc/nginx/conf.d/nextcloud.conf inside my plugin jail using iocage console. This has served me well up until now and across several prior upgrades. However, as of a recent upgrade to 22.2.0, nextcloud.conf is being reverted to the default contents on every restart of the plugin jail.
Several other TrueNAS users have observed and had trouble with the same behavior: https://www.truenas.com/community/threads/ssl-change-after-nextcloud-reboot.95672/
I suggest this is a regression.