Making a repository for a single file available via an URL

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

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/. Then instead of downloading directly from 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.)

1 Like

Thanks! I’ve tried it locally and it works :slight_smile: