<div dir="ltr">Good day!<div><br></div><div>Here is the NGINX Configuration, we tried everything but up to now the upload max limit is still at 128 kb.</div><div><br></div><div><br></div><div><b>/etc/nginx/nginx.conf</b><br><br><br>worker_processes auto;<br>pid /run/nginx.pid;<br>include /etc/nginx/modules-enabled/*.conf;<br><br>events {<br>       worker_connections 768;<br>       # multi_accept on;<br>}<br><br>http {<br><br>       <br>       # Basic Settings<br>      <br>       sendfile on;<br>       tcp_nopush on;<br>       types_hash_max_size 2048;<br>       client_max_body_size 500M;<br>       # server_tokens off;<br><br>       # server_names_hash_bucket_size 64;<br>       # server_name_in_redirect off;<br><br>       include /etc/nginx/mime.types;<br>       default_type application/octet-stream;<br><br>       ##<br>       # SSL Settings<br>       ##<br><br>       ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE<br>       ssl_prefer_server_ciphers on;<br><br>       ##<br>       # Logging Settings<br>       ##<br><br>       access_log /var/log/nginx/access.log;<br>       error_log /var/log/nginx/error.log;<br><br>       ##<br>       # Gzip Settings<br>       ##<br><br>       gzip_vary on;<br><br>       # gzip_vary on;<br>       # gzip_proxied any;<br>       # gzip_comp_level 6;<br>       # gzip_buffers 16 8k;<br>       # gzip_http_version 1.1;<br>       # gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;<br><br>       ##<br>       # Virtual Host Configs<br>       ##<br><br>       include /etc/nginx/conf.d/*.conf;<br>       include /etc/nginx/sites-enabled/*;<br>}</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><b>/etc/nginx/site-available/<a href="http://test.edu.ph">test.edu.ph</a></b><br></div><br>server {<br>   server_name <a href="http://test.edu.ph">test.edu.ph</a>;<br><br>   location / {<br>       proxy_pass <a href="https://192.168.8.243">https://192.168.8.243</a>;<br>       proxy_set_header Host $host;<br>       proxy_set_header X-Real-IP $remote_addr;<br>       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>       proxy_set_header X-Forwarded-Proto $scheme;<br>       client_max_body_size 500M;<br>   }<br><br>   listen 443 ssl; # managed by Certbot<br>   ssl_certificate /etc/letsencrypt/live/<a href="http://test.edu.ph/fullchain.pem">test.edu.ph/fullchain.pem</a>; # managed by Certbot<br>   ssl_certificate_key /etc/letsencrypt/live/<a href="http://test.edu.ph/privkey.pem">test.edu.ph/privkey.pem</a>; # managed by Certbot<br>   include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot<br>   ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot<br>   client_max_body_size 500M;<br><br>}<br><br>server {<br>   if ($host = <a href="http://test.edu.ph">test.edu.ph</a>) {<br>       return 301 https://$host$request_uri;<br>   } # managed by Certbot<br><br><br>   listen 80;<br>   server_name <a href="http://test.edu.ph">test.edu.ph</a>;<br>   return 404; # managed by Certbot<br>   client_max_body_size 500M;<br>}<br><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Can anyone help us solve our max upload size limit.</div><div><br></div><div>Our server is set to https only access.</div><div><br></div><div><br></div><div>Thank you!</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 1, 2024 at 11:27 PM Sergey A. Osokin <<a href="mailto:osa@freebsd.org.ru">osa@freebsd.org.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi there,<br>
<br>
On Fri, Mar 01, 2024 at 04:45:07PM +0800, zen zenitram wrote:<br>
> <br>
> We created an institutional repository with eprints and using NGINX as load<br>
> balancer, but we encountered problem in uploading file to our repository.<br>
> It only alccepts 128 kb file upload, the client_max_body_size is set to 2<br>
> gb.<br>
> <br>
> but still it only accepts 128 kb max upload size.<br>
> How to solve this problem?<br>
<br>
I'd recommend to share the nginx configuration file in the maillist.<br>
Don't forget to remove any sensitive information or create a minimal<br>
nginx configuration reproduces the case.<br>
<br>
Thank you.<br>
<br>
-- <br>
Sergey A. Osokin<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="https://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">https://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div>