Add percona to cache

The Percona mirrors are relatively unstable and therefore having
them in our cache would be very useful as we can avoid all the
hits (and it is relatively static content).

Also, this fixes a small missing quote in the Oracle Linux
configuration.

Change-Id: Iaa11d2de5d6709341c469b9b30da77a61f7533a6
This commit is contained in:
Mohammed Naser 2018-06-16 20:44:10 -04:00 committed by Ian Wienand
parent eb1b962df5
commit 5326fe30e1

View File

@ -202,9 +202,14 @@ LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-a
ProxyPassReverse "/grafana/" "https://packagecloud.io/grafana/"
# OracleLinux
CacheEnable disk "/oraclelinux
CacheEnable disk "/oraclelinux"
ProxyPass "/oraclelinux/" "http://yum.oracle.com/repo/OracleLinux/" ttl=120 keepalive=On retry=0
ProxyPassReverse "/oraclelinux/" "http://yum.oracle.com/repo/OracleLinux/"
# Percona
CacheEnable disk "/percona"
ProxyPass "/percona/" "https://repo.percona.com/" ttl=120 keepalive=On retry=0
ProxyPassReverse "/percona/" "https://repo.percona.com/"
</VirtualHost>
<VirtualHost <%= @vhost_name %>:8081>