Maximum upload file size 5G

Nextcloud version: 15.0.5
Operating system and version: CentOS 7 (Core)
Apache or nginx version: Apache 2.4.6
PHP version: PHP 7.2.10

Steps to replicate it:

Followed this guide to deploy NextCloud on CentOS 7 in (proxmox container in my case).


Everything seems to work, except syncing of big files in NextCloud Client (I’m on Ubuntu 18). Files bigger than 2M are not synced. I have only one question, what files should I change to be able to sync any file size (5G for now is fine :)) ?

I tried to add below two lines into /etc/httpd/conf.d/rh-php72-php.conf (which is inside of httpd)
upload_max_filesize = 5000M
post_max_size = 5000M

or this php.ini ? /etc/opt/rh/rh-php72/php.ini

Should I also add something in apache conf ? here /etc/httpd/conf/httpd.conf

Basically I have no idea exactly where to add the config. In docs is not saying anything. Thanks.