# Restrict maximum artifact size in NXRM OSS 3.x

**URL:** <https://community.sonatype.com/t/restrict-maximum-artifact-size-in-nxrm-oss-3-x/7099>\
**Category:** Sonatype Nexus Repository\
**Tags:** nxrm3, nexus-repository\
**Created:** [August 10, 2021, 7:33pm UTC](https://community.sonatype.com/t/restrict-maximum-artifact-size-in-nxrm-oss-3-x/7099 "2021-08-10T19:33:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alok.patwal](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@alok.patwal](https://community.sonatype.com/u/alok.patwal)\
**Post date:** [August 10, 2021, 7:33pm UTC](https://community.sonatype.com/t/restrict-maximum-artifact-size-in-nxrm-oss-3-x/7099/1 "2021-08-10T19:33:29Z")

</div>

I want to restrict the maximum artifact size that can be pushed to NXRM OSS 3.x. Is there a way to do this?

---

<div class="post-metadata">

**Author:** ![mmartz](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@mmartz](https://community.sonatype.com/u/mmartz)\
**Post date:** [August 10, 2021, 11:25pm UTC](https://community.sonatype.com/t/restrict-maximum-artifact-size-in-nxrm-oss-3-x/7099/2 "2021-08-10T23:25:52Z")

</div>

As far as I know nothing is built-in to nxrm. As you can imagine some formats such as Docker routinely use very large image sizes. I’d recommend using an http proxy to block large uploads (for example you could use the `client_max_body_size` directive in `nginx`).
