Unable to apload 200mb file in owncloud

I have installed OwnCloud in docker and tried to upload a 200mb file to owncloud in
local(http://localhost:80) its working, But when try with domain name (https://owncloud.domain.com) loadbalacing with Nginx its not working.
Please give me a solution.

upstream cloud {
# Use IP Hash for session persistence
ip_hash;

# List of Tomcat application servers
server 127.0.0.1:3000;

}

server {
listen 80;
server_name owncloud.domain.com;

# Redirect all HTTP requests to HTTPS
location / {
    client_body_in_file_only   on;
    client_body_buffer_size    10M;
    client_max_body_size       7G;
    proxy_read_timeout 3600;
    proxy_send_timeout          3600;
    send_timeout                3600;
    return 301 https://$server_name$request_uri;
}

}

server{
listen 443 ssl http2;

server_name owncloud.domain.com;
ssl_certificate     /etc/letsencrypt/live/owncloud.domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/owncloud.domain.com/privkey.pem;

ssl_session_cache   shared:SSL:1m;
ssl_prefer_server_ciphers on;


 location / {
  client_body_in_file_only   on;
  client_body_buffer_size    10M;
  client_max_body_size       7G;
  proxy_read_timeout 2000;
  proxy_send_timeout          600;
  send_timeout                600;
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_pass http://cloud;
    }
}

This is my Nginx configuration, I have added the environments to the Nginx file.
Pls help with this…

can you do not upload the same file, from inside or outside?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.