# Mender-proxy/deployments unable to upload files to minio

**URL:** <https://hub.mender.io/t/mender-proxy-deployments-unable-to-upload-files-to-minio/1637>\
**Category:** General Discussions\
**Tags:** minio, proxy, deployment\
**Created:** [March 12, 2020, 1:12pm UTC](https://hub.mender.io/t/mender-proxy-deployments-unable-to-upload-files-to-minio/1637 "2020-03-12T13:12:21Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![tranchitella](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/tranchitella/32/606_2.png) [@tranchitella](https://hub.mender.io/u/tranchitella)\
**Post date:** [April 1, 2020, 3:16pm UTC](https://hub.mender.io/t/mender-proxy-deployments-unable-to-upload-files-to-minio/1637/11 "2020-04-01T15:16:28Z")

</div>

@opops

You are right, to upload large files you need to increase the proxy\_read\_timeout in mender-api-gateway. This is going to be fixed in our next patch release, in the meantime you can make the configuration permanent as follows:

```
diff a/docker-compose.yml b/docker-compose.yml
index a2302f7..d3b2b66 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -42,6 +42,8 @@ services:
            service: mender-base
        networks:
            - mender
+ volumes:
+ - ./increase_timeouts.conf:/usr/local/openresty/nginx/conf/optional/endpoints/increased_timeouts.conf
        # critical - otherwise nginx may not detect
        # these servers and exits with 'upstream server not found'
        depends_on:
diff a/increase_timeouts.conf b/increase_timeouts.conf
new file mode 100644
index 0000000..22e1882
--- /dev/null
+++ b/increase_timeouts.conf
@@ -0,0 +1,2 @@
+client_max_body_size 10G;
+proxy_read_timeout 600;

```

This is not the optimal solution, but fixes the issue till the next release.

---

_[View the full topic](https://hub.mender.io/t/mender-proxy-deployments-unable-to-upload-files-to-minio/1637)._
