From 64d73a8f552c4bcde7de33483452f670419355f4 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Wed, 29 Nov 2017 13:38:01 +0800 Subject: [PATCH] Add more reverse proxy Add opendaylight, elasticsearch, grafana, oraclelinux reverse proxy. Change-Id: Id987b3dcf472c3817d904cd84e36706b640f639d --- .../templates/mirror.vhost.erb | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/modules/openstack_project/templates/mirror.vhost.erb b/modules/openstack_project/templates/mirror.vhost.erb index 93b6d05071..f7a60b7212 100644 --- a/modules/openstack_project/templates/mirror.vhost.erb +++ b/modules/openstack_project/templates/mirror.vhost.erb @@ -194,6 +194,26 @@ NameVirtualHost <%= @vhost_name %>:8081 CacheEnable disk "/rubygems" ProxyPass "/rubygems/" "https://rubygems.org/" ttl=120 keepalive=On retry=0 ProxyPassReverse "/rubygems/" "https://rubygems.org/" + + # opendaylight + CacheEnable disk "/opendaylight" + ProxyPass "/opendaylight/" "https://nexus.opendaylight.org/" ttl=120 keepalive=On retry=0 + ProxyPassReverse "/opendaylight/" "https://nexus.opendaylight.org/" + + # elastico + CacheEnable disk "/elastic" + ProxyPass "/elastic/" "https://packages.elastic.co/" ttl=120 keepalive=On retry=0 + ProxyPassReverse "/elastic/" "https://packages.elastic.co/" + + # grafana + CacheEnable disk "/grafana" + ProxyPass "/grafana" "https://packagecloud.io/grafana/" ttl=120 keepalive=On retry=0 + ProxyPassReverse "/grafana/" "https://packagecloud.io/grafana/" + + # 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/" :8081>