From b69aceb930e9eac023c1f57ca1313211aeb6f379 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mon, 18 May 2015 13:27:05 +0000 Subject: [PATCH] (copr) use staging and production URLs for fedmenu. --- roles/copr/frontend/templates/copr.conf | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/roles/copr/frontend/templates/copr.conf b/roles/copr/frontend/templates/copr.conf index 3210341392..08282547ff 100644 --- a/roles/copr/frontend/templates/copr.conf +++ b/roles/copr/frontend/templates/copr.conf @@ -42,7 +42,12 @@ INTRANET_IPS = ["127.0.0.1", "172.16.5.0/24"] REPO_GPGCHECK = {% if devel %} 0 {% else %} 1 {% endif %} -# URLs for fedmenu resources -FEDMENU_URL = "http://threebean.org/fedmenu/" -FEDMENU_DATA_URL = "http://threebean.org/fedmenu/dev-data.js" - +{% if env == 'staging' %} +# Staging URLs for fedmenu +FEDMENU_URL = "https://apps.stg.fedoraproject.org/fedmenu/" +FEDMENU_DATA_URL = "https://apps.stg.fedoraproject.org/js/data.js" +{% else %} +# Production URLs for fedmenu +FEDMENU_URL = "https://apps.fedoraproject.org/fedmenu/" +FEDMENU_DATA_URL = "https://apps.fedoraproject.org/js/data.js" +{% endif %}