Guidance changing DietPi/Nextcloud configuration

I have a Nextcloud installation on Pi4 which has been running for longer than I can remember and am looking for some pointers/guidance on amending the configuration.

The task at hand is to increase the maximum upload limit.

The following article appears to explain what needs to be done, but I wanted to check that it is appropriate for a DietPi/Nexcloud installation.

https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/big_file_upload_configuration.html

As far as I can estbalish it should be a matter of adding the following lines to /var/www/nextcloud/.user.ini

php_value upload_max_filesize 16G
php_value post_max_size 16G

(substituting 16G with the desired size).

Thanks in advance.
Phil.