From df697c6b707c0f10054197a79d1e7ec64ec36584 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Sat, 12 Mar 2016 09:55:45 +0000 Subject: [PATCH] Add reverseproxy for pkgs.fp.o (ticket #2324) Signed-off-by: Patrick Uiterwijk --- playbooks/include/proxies-reverseproxy.yml | 13 +++++++++++++ playbooks/include/proxies-websites.yml | 7 +++++++ 2 files changed, 20 insertions(+) diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index e029b30db7..bdc09f1687 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -470,3 +470,16 @@ - role: geoip-city-wsgi/proxy website: geoip.fedoraproject.org proxyurl: http://localhost:10029 + + # Reverse proxy pkgs for integrity protection of anonymous clones + #- role: httpd/reverseproxy + # website: src.fedoraproject.org + # destname: git + # proxyurl: http://pkgs02.phx2.fedoraproject.org/git + # when: env == "production" + + - role: httpd/reverseproxy + website: src.fedoraproject.org + destname: git + proxyurl: http://pkgs01.stg.phx2.fedoraproject.org/git + when: env == "staging" diff --git a/playbooks/include/proxies-websites.yml b/playbooks/include/proxies-websites.yml index d2d83db678..81520b5473 100644 --- a/playbooks/include/proxies-websites.yml +++ b/playbooks/include/proxies-websites.yml @@ -153,6 +153,13 @@ - www.fedoramirror.net cert_name: "{{wildcard_cert_name}}" + - role: httpd/website + name: src.fedoraproject.org + server_aliases: + - src.stg.fedoraproject.org + cert_name: "{{wildcard_cert_name}}" + when: env == "staging" # Remove after freeze + - role: httpd/website name: download.fedoraproject.org server_aliases: