# Proxy repositories for Maven, npm, Python, Docker, Go and yum

A proxy repository gives your builds one CloudRepo address for a public repository such as Maven Central, npm, PyPI or Docker Hub. The first request for a file fetches it from the upstream, and CloudRepo stores a copy in your repository. It does not copy the whole upstream, only the files your builds ask for.

**Every feature on every plan,** from $99/month billed annually.

[Start free trial](https://www.cloudrepo.io/signup) [View setup guide](#setup)

14 days free. No credit card required.

Serving developers since 2016 Founder-run, no venture capital

\~/.m2/settings.xml

```
<settings>
  <servers>
    <server>
      <id>cloudrepo</id>
      <username>you@example.com</username>
      <password>${env.CLOUDREPO_TOKEN}</password>
    </server>
  </servers>
  <mirrors>
    <mirror>
      <id>cloudrepo</id>
      <mirrorOf>central</mirrorOf>
      <url>https://your-org.mycloudrepo.io/repositories/maven-central</url>
    </mirror>
  </mirrors>
</settings>
```

## Included on every plan

Plans differ only in storage and transfer allowance.

- [SSO (SAML, OIDC)](https://www.cloudrepo.io/docs/authenticate/mfa-and-sso.html)
- [Multi-factor authentication (MFA)](https://www.cloudrepo.io/docs/manage/mfa.html)
- [Audit log](https://www.cloudrepo.io/docs/manage/audit-log.html)
- [Repository tokens](https://www.cloudrepo.io/docs/authenticate/repository-tokens.html)
- [Unlimited users, no per-seat pricing](https://www.cloudrepo.io/pricing)
- [Human support](https://www.cloudrepo.io/about-us)
- [Maven](https://www.cloudrepo.io/docs/formats/maven.html), [npm](https://www.cloudrepo.io/docs/formats/npm.html), [Python](https://www.cloudrepo.io/docs/formats/python.html), [Docker](https://www.cloudrepo.io/docs/formats/docker.html) with [Helm charts](https://www.cloudrepo.io/docs/formats/helm.html) and [plain files](https://www.cloudrepo.io/docs/formats/raw.html)
- [Proxy repositories](https://www.cloudrepo.io/docs/consume/proxy-repositories.html)
- Access log
- [SCIM](https://www.cloudrepo.io/docs/authenticate/scim.html)

## How a proxy repository works

What CloudRepo stores, what it asks the upstream again, and what a proxy does not do.

- **One format per proxy** Maven, npm, Python and Docker, plus Go and yum in early access. A proxy repository has one format and pulls from one upstream, chosen from a fixed list.
- **Fetched on the first request** The first request for a file fetches it from the upstream repository, and CloudRepo stores a copy in your repository.
- **Served from the stored copy** Later requests for a file that CloudRepo already stores are answered from that copy: a jar, an npm tarball, a Python wheel or a Docker image layer.
- **Package lists are asked again** The documents that list what exists are not kept for good. A Maven proxy treats a stored maven-metadata.xml as current for 60 minutes. An npm package document and a Python index page come from the upstream on each request. A Docker tag is checked again once its stored record is stale.
- **Delete a copy, fetch it again** Delete a stored file like any other artifact, and the next request fetches it from the upstream again.
- **Pull only** Uploading to a proxy repository is not permitted, from a build tool or from the Admin Portal. Push your own artifacts to a local repository.

## Setup guide

Replace your-org and the repository names with your own.

### Create a proxy repository

In the admin portal, open Create Repository, choose a format, set Kind to Proxy and pick the Upstream. Maven Central is already chosen for Maven.

Create Repository form

```
Format: Maven
Kind: Proxy
Upstream: Maven Central
Name: maven-central
```

### Point Maven at it

In \~/.m2/settings.xml, a mirror of central sends Maven's requests for Central to your proxy. The server with the same id gives Maven your repository token.

\~/.m2/settings.xml

```
<settings>
  <servers>
    <server>
      <id>cloudrepo</id>
      <username>you@example.com</username>
      <password>${env.CLOUDREPO_TOKEN}</password>
    </server>
  </servers>
  <mirrors>
    <mirror>
      <id>cloudrepo</id>
      <mirrorOf>central</mirrorOf>
      <url>https://your-org.mycloudrepo.io/repositories/maven-central</url>
    </mirror>
  </mirrors>
</settings>
```

### Or pull a Docker image through Docker Hub

Create a Docker proxy of Docker Hub named docker-hub, log in to your organization's host, then pull. The reference is the host, the literal repositories/ segment, the proxy's ID, then the image and tag.

Terminal

```
echo "$CLOUDREPO_TOKEN" | docker login your-org.mycloudrepo.io \
  --username you@example.com \
  --password-stdin

docker pull your-org.mycloudrepo.io/repositories/docker-hub/alpine:latest
```

### Pick the upstream from a fixed list

A proxy repository pulls from one upstream on the list for its format. Need another? Tell us. We add what customers ask for, fast.

- **Maven** Maven Central (repo.maven.apache.org/maven2), Google Maven, Gradle Plugins, Clojars, Confluent, Atlassian, Spring and others. [Maven guide](https://www.cloudrepo.io/docs/formats/maven.html)
- **npm** npmjs.com (registry.npmjs.com, the default), npmjs.org, GitHub Packages and jsDelivr. [npm guide](https://www.cloudrepo.io/docs/formats/npm.html)
- **Python (PyPI)** PyPI (pypi.org). [Python guide](https://www.cloudrepo.io/docs/formats/python.html)
- **Docker** Docker Hub (registry-1.docker.io), GitHub Container Registry, AWS ECR Public, Quay.io and the Microsoft Container Registry. [Proxy Docker Hub](https://www.cloudrepo.io/docs/formats/docker.html#proxy-docker-hub)

A proxy repository is read like any other repository of its format. The [Maven](https://www.cloudrepo.io/docs/formats/maven.html), [npm](https://www.cloudrepo.io/docs/formats/npm.html), [Python](https://www.cloudrepo.io/docs/formats/python.html) and [Docker](https://www.cloudrepo.io/docs/formats/docker.html) guides show each client, and the [proxy repositories guide](https://www.cloudrepo.io/docs/consume/proxy-repositories.html) has the rest.

Every plan includes human support and SSO. [See pricing](https://www.cloudrepo.io/pricing#calculator)

## Try a proxy repository

14 days free. No credit card required.

Starting at $99/month billed annually.

[Start free trial](https://www.cloudrepo.io/signup) [View pricing](https://www.cloudrepo.io/pricing)

![Chris Shellenbarger, founder of CloudRepo](https://www.cloudrepo.io/_astro/chris-headshot-150.DWO5wLdz.jpg)

**Founder-run since 2016, with no venture capital.** A real person answers within one business day. Usually it's me.

Chris, founder of CloudRepo

[Book time with Chris](https://www.cloudrepo.io/meet)

---

The page: https://www.cloudrepo.io/http-mirror
