How to change the timeout value during upload in a Docker environment

Hello,
I’ve set up Nextcloud using the configuration of docker, MariaDB, and https-portal. However, when trying to upload an 8GB file, I encounter a “gateway timeout” error.
The error occurs 60 seconds after the upload progress reaches 100%.
Therefore, it is suspected that this error is due to the timeout of processing the chunk data uploaded in segments for merging.

I’m thinking of changing the timeout value in the configuration file.
Could you please advise me on which configuration file I should modify?
For example, I am considering making the following changes.
If there are any other settings that should be added, please advise.

・proxy

proxy_connect_timeout 1800;
proxy_send_timeout 1800;
proxy_read_timeout 1800;
send_timeout 1800;

・web

fastcgi_read_timeout 1800;
fastcgi_send_timeout 1800;
fastcgi_connect_timeout 1800;

・my docker-compose.yml

services:
  db:
    image: mariadb
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
    volumes:
      - ./mysql:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=PASSWARD
      - MYSQL_PASSWORD=PASSWARD
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloudadmin
  app:
    image: nextcloud
    restart: always
    ports:
      - 9001:80
    links:
      - db
    volumes:
      - /var/www/html:/var/www/html
      - /media/data/nextcloud:/var/www/html/data
    environment:
      - MYSQL_PASSWORD=PASSWARD
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=nextcloud
      - MYSQL_HOST=db
      - PHP_MEMORY_LIMIT=4G
      - PHP_UPLOAD_LIMIT=99G 

  https-portal:
    image: steveltn/https-portal:1
    ports:
      - "80:80"
      - "443:443"
    depends_on:
      - app
    restart: always
    environment:
      CLIENT_MAX_BODY_SIZE: 99G 
      DOMAINS: 'domain.com -> http://app:80'
      HSTS_MAX_AGE: 300
      STAGE: production
    volumes:
      - ./org-chimata-ssl-certs:/var/lib/https-portal