Skip to Content
Admin GuidesGalaxy ProxyOverview

Galaxy Proxy

Ascender Galaxy Proxy is a caching proxy for Ansible Galaxy. It sits between your automation and galaxy.ansible.com (or another Galaxy-compatible server), serving collection metadata and artifacts from disk so that job runs stay fast, keep working for cached content when the upstream server is unreachable, and work inside networks with restricted internet access.

Galaxy Proxy is installed as part of Ascender Pro; see Installing Galaxy Proxy. It needs a DNS name, because clients are handed URLs that point back to the proxy.

How it works

Clients such as ansible-galaxy and Ascender project updates send their Galaxy API requests to the proxy instead of to Ansible Galaxy:

  • API responses (collection lists, versions, and metadata) are cached with two tiers: an in-memory LRU cache in front of an on-disk cache. Responses are kept for one day by default.
  • Collection artifacts (the .tar.gz downloads) are cached on disk and kept for 30 days by default.
  • On a cache miss, the proxy fetches the content from the upstream Galaxy server, stores it, and returns it. Concurrent API requests for the same URL are combined into a single upstream request.
  • Links in upstream responses that point at the upstream server are rewritten to point at the proxy's external URL, so follow-up requests and downloads also go through the proxy.
  • Only successful upstream responses are cached. Upstream errors are passed back to the client.
  • The cache is stored in /app/.cache in the proxy container and survives restarts when it is on a persistent volume.

The proxy covers the Galaxy API v1, v2, and v3 endpoint families, including the collection artifact download paths. Requests to paths it does not proxy return HTTP 404 with the error Route not proxied. It handles GET requests only; publishing collections through the proxy is not supported. Artifacts larger than 40 MB are refused.

Guides

  • Configuration: every setting, with its default and meaning.
  • Using the Proxy: pointing ansible-galaxy and Ascender at the proxy, and API token authentication.
  • Monitoring: the health check and Prometheus metrics endpoints.