# Making a repository for a single file available via an URL

**URL:** <https://community.sonatype.com/t/making-a-repository-for-a-single-file-available-via-an-url/10738>\
**Category:** Sonatype Nexus Repository\
**Tags:** help, nexus-repository\
**Created:** [June 5, 2023, 11:30am UTC](https://community.sonatype.com/t/making-a-repository-for-a-single-file-available-via-an-url/10738 "2023-06-05T11:30:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![poeks](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@poeks](https://community.sonatype.com/u/poeks)\
**Post date:** [June 5, 2023, 11:30am UTC](https://community.sonatype.com/t/making-a-repository-for-a-single-file-available-via-an-url/10738/1 "2023-06-05T11:30:08Z")

</div>

Hi community,

I’m trying to setup a repository in Nexus for a single file. Is this possible and how would one implement this?

If not, is there some mechanism to automatically pull files to a hosted repository with Nexus functionality (so without making a script)?

The target URL is a CVE database: [https://install.stackrox.io/scanner/scanner-vuln-updates.zip](https://install.stackrox.io/scanner/scanner-vuln-updates.zip)

---

<div class="post-metadata">

**Author:** ![mprescott](https://yyz1.discourse-cdn.com/flex047/user_avatar/community.sonatype.com/mprescott/32/178_2.png) [@mprescott](https://community.sonatype.com/u/mprescott)\
**Post date:** [June 5, 2023, 1:14pm UTC](https://community.sonatype.com/t/making-a-repository-for-a-single-file-available-via-an-url/10738/2 "2023-06-05T13:14:16Z")

</div>

What you’d normally do with Nexus Repository in this case is to set up a Raw proxy repository, pointing to [https://install.stackrox.io/](https://install.stackrox.io/). Then instead of downloading directly from [stackrox.io](http://stackrox.io), you’d point your clients at your repository instance.

Nexus Repository doesn’t pre-emptively pull down files from the remote URLs that it proxies, but it does check to see if there’s a newer version when clients attempt to pull the file through it. (The cache time between checks is configurable.)

---

<div class="post-metadata">

**Author:** ![poeks](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@poeks](https://community.sonatype.com/u/poeks)\
**Post date:** [June 5, 2023, 2:00pm UTC](https://community.sonatype.com/t/making-a-repository-for-a-single-file-available-via-an-url/10738/3 "2023-06-05T14:00:53Z")

</div>

Thanks! I’ve tried it locally and it works 🙂
