Celebrating 700K+ Installs Up to 35% OFF! View Details →

Custome Body size upload

Published 4 hours ago

# SafeLine WAF
# šŸ’” feature
# šŸ’Ŗ improve

Published 4 hours ago

profile_photo

enjang844

Updated 4 hours ago

0

Hi team! I need some help configuring a custom file upload size limit for a specific website.
The Issue:
Currently, users are experiencing issues and getting errors when trying to upload documents up to 50MB on one of our protected sites.
What I want to achieve:
• I want to increase and customize the upload size limit up to 100MB.
• Crucial constraint: This change should only apply to this specific website (one web), not globally across all upstream apps.
Could anyone guide me on how to properly adjust this setting in the SafeLine configuration (e.g., via Nginx custom snippets, reverse proxy settings, or the WAF dashboard)?

profile_photo

Sylvie

Updated 3 hours ago

0

Hi! I checked with our engineers, and SafeLine doesn't impose a file upload size limit by default.

If you'd like to set a custom upload size limit for a specific website, you can do so through the Custom Nginx Configuration under that site's *Advanced.

profile_photo

Sylvie

Updated 3 hours ago

0

image.png

profile_photo

enjang844

Updated 2 hours ago

0

I am trying to add this configuration to a custom Nginx Config . Is this correct, or is there anything that still needs to be adjusted? " # --- Cloudflare IPv4 ---
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 104.16.0.0/13;
set_real_ip_from 104.24.0.0/14;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 131.0.72.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 162.158.0.0/15;
set_real_ip_from 172.64.0.0/13;
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 197.234.240.0/22;
set_real_ip_from 198.41.128.0/17;

--- Cloudflare IPv6 ---

set_real_ip_from 2400:cb00::/32;
set_real_ip_from 2606:4700::/32;
set_real_ip_from 2803:f800::/32;
set_real_ip_from 2405:b500::/32;
set_real_ip_from 2405:8100::/32;
set_real_ip_from 2a06:98c0::/29;
set_real_ip_from 2c0f:f248::/32;

--- Real IP Configuration ---

real_ip_header CF-Connecting-IP;
real_ip_recursive on;

--- Buffer Size Upload ---

client_max_body_size 100m;
client_body_buffer_size 100m;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
"