From ff3c5dcdf6d69500fe8368c5c4cd708714734974 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Fri, 22 Jan 2016 00:43:49 +0000 Subject: [PATCH] Proxy copr api Signed-off-by: Patrick Uiterwijk --- playbooks/include/proxies-reverseproxy.yml | 7 +++++++ playbooks/include/proxies-websites.yml | 4 +++- ...rect.copr.fedoraproject.org.conf => redirect.copr.conf} | 0 3 files changed, 10 insertions(+), 1 deletion(-) rename roles/httpd/redirect/templates/{redirect.copr.fedoraproject.org.conf => redirect.copr.conf} (100%) diff --git a/playbooks/include/proxies-reverseproxy.yml b/playbooks/include/proxies-reverseproxy.yml index ee55be558d..83f4dc68b8 100644 --- a/playbooks/include/proxies-reverseproxy.yml +++ b/playbooks/include/proxies-reverseproxy.yml @@ -30,6 +30,13 @@ roles: + - role: httpd/reverseproxy + website: copr.fedoraproject.org + destname: api + localpath: /api + remotepath: /api + proxyurl: https://copr.fedorainfracloud.org + - role: httpd/reverseproxy website: admin.fedoraproject.org destname: nagios diff --git a/playbooks/include/proxies-websites.yml b/playbooks/include/proxies-websites.yml index 313a12784f..568ecedee0 100644 --- a/playbooks/include/proxies-websites.yml +++ b/playbooks/include/proxies-websites.yml @@ -258,7 +258,9 @@ - role: httpd/website name: copr.fedoraproject.org - sslonly: true + ssl: true + # We need sslonly=false because copr-cli hardcoded http + sslonly: false cert_name: "{{wildcard_cert_name}}" - role: httpd/website diff --git a/roles/httpd/redirect/templates/redirect.copr.fedoraproject.org.conf b/roles/httpd/redirect/templates/redirect.copr.conf similarity index 100% rename from roles/httpd/redirect/templates/redirect.copr.fedoraproject.org.conf rename to roles/httpd/redirect/templates/redirect.copr.conf