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:
parent
c84c4ce152
commit
f965153ab8
@ -220,6 +220,11 @@ LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-a
|
|||||||
CacheEnable disk "/docker"
|
CacheEnable disk "/docker"
|
||||||
ProxyPass "/docker/" "https://download.docker.com/linux/" ttl=120 keepalive=On retry=0
|
ProxyPass "/docker/" "https://download.docker.com/linux/" ttl=120 keepalive=On retry=0
|
||||||
ProxyPassReverse "/docker/" "https://download.docker.com/linux/"
|
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>
|
||||||
|
|
||||||
<VirtualHost <%= @vhost_name %>:8081>
|
<VirtualHost <%= @vhost_name %>:8081>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user