When installing Nextcloud in TrueNAS SCALE 24.10-BETA.1, an issue occurs when accessing via an untrusted domain name

Access via untrusted domains
Please contact your administrator. If you are the administrator, edit the “trusted_domains” setting in config/config.php using the example in config.sample.php.

Can anyone tell me how to modify the PHP files in this directory? When I execute vi now, it shows that this command cannot be used.

login to nextcloud shell and install vi or nano to edit the config.php file

command to install vi or nano

#apt install vi
or
#apt install nano