Welcome! Log In Create A New Profile

Advanced

NGINX blocks large files for me

Posted by saamuu 
NGINX blocks large files for me
February 15, 2021 06:06AM
Good morning everyone,

I comment on the situation, I have an apache 2.4.29 server (Ubuntu) with rainloop .61, and in another ubuntu server 18.4 with docker-compose I have an NGINX .109 mounting, from within the network if I point to NGINX, it redirects me to 61 and I can attach files without problem, instead from outside the network it redirects me the same, to the rainloop server, but when I attach files it gives me error 413, and I have configured the
client_max_body_size 50M;
client_body_buffer_size 16k;

and it keeps giving me an error, in ubuntu apache everything is also allowed, I don't know what else to do

NGINX configuration:
nginx user nginx;

worker_processes auto;

# pid /run/nginx.pid;

events {
worker_connections 768;
multi_accept on;
}

http {


send file on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 15;
types_hash_max_size 2048;
server_tokens disabled;
# -------------------------- WEB MAIL --------------------- ---------------------

server {
listen 80;
webmail_server_name.tomsadestil.es;


client_max_body_size 50M;
client_body_buffer_size 16k;


location / {



proxy_set_header Host $ host;
proxy_pass https://192.168.1.61:443;

}
}

server {
listen 443 ssl;
webmail_server_name.tomsadestil.es;
ssl_certificate /etc/nginx/fullchain.pem;
ssl_certificate_key /etc/nginx/privkey.pem;
ssl_protocols SSLv2 SSLv3 TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH :! aNULL :! MD5;
shared ssl_session_cache: SSL: 10m;


client_max_body_size 50M;
client_body_buffer_size 16k;



location / {

if ($ request_method = 'POST') {
add_header 'Access-Control-Allow-Origin' 'https://192.168.1.61:443;
add_header 'Access-Control-Allow-Methods' 'POST';

}



proxy_redirect off;

proxy_ssl_server_name enabled;
proxy_set_header Host $ host;
proxy_pass https://192.168.1.61:443;


}
Attachments:
open | download - 1111.PNG (49.2 KB)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 246
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready