Memory_limit & upload_max_limit are wrong

On the nextcloud system page it says i have
memory_limit = 4G
upload_max_size = 1G

But when i check all php ini files, none has 4G or 1G settings, and i cannot find any other file that has these settings.
How can i tell where these settings comes from?

root@nextcloud:/etc/php/8.2# ls
apache2  cli  fpm  mods-available
root@nextcloud:/etc/php/8.2# find ./ -type f -exec grep -H 'memory_limit' {} \;
./apache2/php.ini:memory_limit = 2048M
./cli/php.ini:memory_limit = -1
./fpm/php.ini:memory_limit = 2048M
./fpm/pool.d/www.conf:;php_admin_value[memory_limit] = 32M
root@nextcloud:/etc/php/8.2#

Version: 8.2.20

Memory limit: 4 GB

Max execution time: 3600

Upload max size: 1 GB

OPcache Revalidate Frequency: 60

Extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, random, Reflection, SPL, session, standard, sodium, apache2handler, mysqlnd, PDO, xml, apcu, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, intl, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache

Don’t know if it’s relevant, but have you switched in the past from php to php-fpm?

If so this thread is maybe helpful → it’s a german post but the settings are self-explaining

should be adapted to version 8.2 (it’s an elderly post → 7.4)

memory_limit is INI_ALL changeable.
upload_max_size is INI_PERDIR changeable.

See PHP: Where a configuration setting may be set - Manual

They can be set elsewhere.