Welcome! Log In Create A New Profile

Advanced

Nginx timedout

Posted by arunodhayam 
Nginx timedout
December 13, 2021 02:38AM
Hi there, I am using own cloud(drive) in docker and domain name mapped via the Nginx load balancing. I can able to upload the files up to 10MB but if I tried with 100MB, 1GB the Nginx load balancing timed out error facing. I thought that Error was in own cloud but after configuring this cloud with other load balancing service(proxy) I can able to upload a 1GB file to own cloud.

This is my nginx configuration file for owncloud.

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;
}

}



Edited 1 time(s). Last edit at 12/13/2021 02:39AM by arunodhayam.
Attachments:
open | download - Screenshot from 2021-12-13 13-07-52.png (6.8 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 135
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready