Skip to Content

Configuration

Galaxy Proxy is configured entirely through environment variables. In Kubernetes deployments they are supplied through the ascender-galaxy-proxy-config ConfigMap. For how the Ascender Pro installer sets them, see Installing Galaxy Proxy.

Environment variables

VariableDefaultPurpose
URLRequiredExternal URL of the proxy, for example https://galaxy-proxy.example.com. Used to rewrite upstream links so that clients come back to the proxy. Must be an http or https URL with a host; a trailing slash is removed. The proxy refuses to start if it is missing or invalid.
UPSTREAM_BASEURLhttps://galaxy.ansible.comThe Galaxy server to proxy. Must be an http or https URL with a host; an invalid value is ignored (with a warning) and the default is used.
QUERY_CACHE_EXPIRE1Days to keep cached API responses, from 0 to 365. A value outside that range, or one that is not a number, falls back to the default.
ARTIFACT_CACHE_EXPIRE30Days to keep cached artifact downloads, from 0 to 365. A value outside that range, or one that is not a number, falls back to the default.
MEM_CACHE_SIZE2000Number of API responses held in the in-memory LRU cache. A value that is not a positive number falls back to the default.
CLEAR_CACHE_ON_STARTUnsetSet to 1 or true to clear the on-disk cache, the in-memory cache, and the metrics when the proxy starts. Any other value leaves the cache in place.
TRUSTED_PROXIESEmptyComma-separated IP addresses of reverse proxies in front of Galaxy Proxy, so that the real client IP address is logged. 127.0.0.1 is always trusted.
HTTP_PROXYEmptyURL of a corporate HTTP proxy for upstream requests, for example http://proxy.example.com:8080. Must be an http or https URL with a host; an invalid value is ignored with a warning.
GALAXY_API_TOKENEmptyWhen set, clients must send Authorization: Token <token> on every Galaxy API and artifact request. When empty, all requests are accepted without authentication. See Authentication.
DEBUGfalseSet to 1 or true to enable verbose logging and debug mode.
LOG_FORMATtextLog output format: text, or json for one JSON object per line, including request logs.
Note

Cache expiry is checked when content is requested: an entry older than its expiry is removed and fetched again from upstream. Setting an expiry to 0 effectively disables that cache tier, because every entry is already expired.

Cache storage

The proxy caches into /app/.cache in its container: API responses in subdirectories of the cache directory and artifacts in /app/.cache/download. Put the cache on a persistent volume so it survives restarts and upgrades. If you prefer ephemeral cache storage, the volume can be replaced with an emptyDir; the cache is then rebuilt from upstream after every restart.

The cache metrics are also persisted in the cache directory, so they survive restarts unless the cache is cleared with CLEAR_CACHE_ON_START.