# remove collection size limit on private Automation Hub

**URL:** <https://forum.ansible.com/t/remove-collection-size-limit-on-private-automation-hub/36694>\
**Category:** Ansible Project\
**Created:** [June 7, 2022, 12:23am UTC](https://forum.ansible.com/t/remove-collection-size-limit-on-private-automation-hub/36694 "2022-06-07T00:23:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![itsBryantP](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/itsbryantp/32/1062_2.png) [@itsBryantP](https://forum.ansible.com/u/itsBryantP)\
**Post date:** [June 7, 2022, 12:23am UTC](https://forum.ansible.com/t/remove-collection-size-limit-on-private-automation-hub/36694/1 "2022-06-07T00:23:29Z")

</div>

Hi All,

Does anyone know if/how I can remove the collection size upload limit on a private Automation Hub?

Currently hitting API error. Status code: 413 when attempting to upload a 3.3mb collection.

---

<div class="post-metadata">

**Author:** ![itsBryantP](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/itsbryantp/32/1062_2.png) [@itsBryantP](https://forum.ansible.com/u/itsBryantP)\
**Post date:** [June 7, 2022, 12:41am UTC](https://forum.ansible.com/t/remove-collection-size-limit-on-private-automation-hub/36694/2 "2022-06-07T00:41:25Z")

</div>

nevermind, sorted this out by increasing client\_max\_body\_size in /etc/nginx/nginx.conf.

reference: [https://access.redhat.com/solutions/5679321](https://access.redhat.com/solutions/5679321)

---

<div class="post-metadata">

**Author:** ![Nico\_Kadel-Garcia](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/nico_kadel-garcia/32/9998_2.png) [@Nico\_Kadel-Garcia](https://forum.ansible.com/u/Nico_Kadel-Garcia)\
**Post date:** [June 7, 2022, 8:23am UTC](https://forum.ansible.com/t/remove-collection-size-limit-on-private-automation-hub/36694/3 "2022-06-07T08:23:43Z")

</div>

> nevermind, sorted this out by increasing client\_max\_body\_size in /etc/nginx/nginx.conf.
> 
> reference: [https://access.redhat.com/solutions/5679321](https://access.redhat.com/solutions/5679321)

I admit to confusion about why you need to upload such a large  
collection? What do you gain by making them so large?

---

<div class="post-metadata">

**Author:** ![itsBryantP](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/itsbryantp/32/1062_2.png) [@itsBryantP](https://forum.ansible.com/u/itsBryantP)\
**Post date:** [June 7, 2022, 5:14pm UTC](https://forum.ansible.com/t/remove-collection-size-limit-on-private-automation-hub/36694/4 "2022-06-07T17:14:17Z")

</div>

Good question, the reason for the large size is actually due to the fact that we are using our own license and not a SPDX license which is what Galaxy only supports. Thus, we are including a PDF license file in our collection which, uncompressed is 3.4mb. Without the license our collection is only ~30kb.

---

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [June 7, 2022, 6:16pm UTC](https://forum.ansible.com/t/remove-collection-size-limit-on-private-automation-hub/36694/5 "2022-06-07T18:16:10Z")

</div>

I wonder what could possibly make a license file 3.4Mb… IMHO licenses are notorious for being just legalese text without any makeup or anything… If your license file could be like that then your problem is solved.
