Add caching proxy config for Alpine Linux

As part of setting up pbrx container image builds, which use
python:alpine as a base image, add a caching proxy that can be used.

Change-Id: I496e2321c3c84ea5e6ed627d164422b2310406be
This commit is contained in:
Monty Taylor 2018-07-13 09:09:05 -05:00
parent c84c4ce152
commit f965153ab8
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 5 additions and 0 deletions

View File

@ -220,6 +220,11 @@ LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-a
CacheEnable disk "/docker"
ProxyPass "/docker/" "https://download.docker.com/linux/" ttl=120 keepalive=On retry=0
ProxyPassReverse "/docker/" "https://download.docker.com/linux/"
# Alpine
CacheEnable disk "/alpine"
ProxyPass "/alpine/" "http://dl-cdn.alpinelinux.org/alpine/" ttl=120 keepalive=On retry=0
ProxyPassReverse "/alpine/" "http://dl-cdn.alpinelinux.org/alpine/
</VirtualHost>
<VirtualHost <%= @vhost_name %>:8081>