From b30fecacfab13db57e447b876e5ed35c2bd1e054 Mon Sep 17 00:00:00 2001 From: clime Date: Fri, 14 Jul 2017 14:34:23 +0200 Subject: [PATCH] copr-frontend: added PUBLIC_COPR_BASE_URL param --- roles/copr/frontend/templates/copr.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/copr/frontend/templates/copr.conf b/roles/copr/frontend/templates/copr.conf index a59c6800b3..17c3f0d186 100644 --- a/roles/copr/frontend/templates/copr.conf +++ b/roles/copr/frontend/templates/copr.conf @@ -45,6 +45,12 @@ INTRANET_IPS = {{ copr_backend_ips }} REPO_GPGCHECK = {% if devel %} 0 {% else %} 1 {% endif %} +{% if env == 'staging' %} +PUBLIC_COPR_BASE_URL = "http://copr-fe-dev.cloud.fedoraproject.org" +{% else %} +PUBLIC_COPR_BASE_URL = "https://copr.fedorainfracloud.org" +{% endif %} + {% if env == 'staging' %} # Staging URLs for fedmenu FEDMENU_URL = "https://apps.stg.fedoraproject.org/fedmenu/"