<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[client_max_body_size 2m in &#x2F;api&#x2F; location blocks the large blocklists]]></title><description><![CDATA[<p dir="auto">Following the fix in <a href="https://forum.cloudron.io/topic/10547/entering-too-many-ip-addresses-to-be-blocked-at-network-level-by-cloudron-results-in-error-setblocklist-stderr-ipset-v7-15-hash-is-full-cannot-add-more-elements/">#10547</a> that raised the ipset limit to 262,144 elements, we ran into the next bottleneck: the nginx client_max_body_size 2m on the /api/ location in the dashboard config prevents actually reaching anywhere near that element count via the API.</p>
<p dir="auto">In /home/yellowtent/platformdata/nginx/applications/dashboard/&lt;hostname&gt;.conf:</p>
<pre><code>location /api/ {
    proxy_pass   http://127.0.0.1:3000;
    client_max_body_size 2m;   ← limits POST body to ~86k entries
}
</code></pre>
<p dir="auto">At ~23 bytes per entry (JSON-encoded), 2MB caps the blocklist at roughly 86,000 entries — well below the 262k ipset capacity. Anything larger returns HTTP 413.</p>
<p dir="auto">Workaround: changing 2m to 10m in that location block fixes it immediately.</p>
<p dir="auto">Request: could this limit be raised (or set to 0) in a future Cloudron release? Given the server-level client_max_body_size 0 already applies to all app traffic, the 2m restriction on /api/ seems overly conservative for the network blocklist endpoint.</p>
]]></description><link>https://forum.cloudron.io/topic/15536/client_max_body_size-2m-in-api-location-blocks-the-large-blocklists</link><generator>RSS for Node</generator><lastBuildDate>Fri, 22 May 2026 10:43:11 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/15536.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 May 2026 07:15:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to client_max_body_size 2m in &#x2F;api&#x2F; location blocks the large blocklists on Fri, 22 May 2026 07:35:56 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/imc67" aria-label="Profile: imc67">@<bdi>imc67</bdi></a><br />
Thanks for the report.<br />
Can you give me that JSON object so I can use it for testing?<br />
Maybe via. <a href="http://paste.cloudron.io" target="_blank" rel="noopener noreferrer nofollow ugc">paste.cloudron.io</a>?</p>
]]></description><link>https://forum.cloudron.io/post/124991</link><guid isPermaLink="true">https://forum.cloudron.io/post/124991</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Fri, 22 May 2026 07:35:56 GMT</pubDate></item></channel></rss>