From f965153ab8542f671f5a4fe0f012c39519cfc985 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Fri, 13 Jul 2018 09:09:05 -0500 Subject: [PATCH] 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 --- modules/openstack_project/templates/mirror.vhost.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/openstack_project/templates/mirror.vhost.erb b/modules/openstack_project/templates/mirror.vhost.erb index cdff3c539e..ad30639b66 100644 --- a/modules/openstack_project/templates/mirror.vhost.erb +++ b/modules/openstack_project/templates/mirror.vhost.erb @@ -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/ :8081>