From 08d93b22f488564fb15143136cd6c3492259c761 Mon Sep 17 00:00:00 2001 From: Valentin Gologuzov Date: Tue, 7 Jul 2015 14:55:15 +0200 Subject: [PATCH] [copr][frontend] config: set http/https filter options --- roles/copr/frontend/templates/copr.conf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/copr/frontend/templates/copr.conf b/roles/copr/frontend/templates/copr.conf index d08da3009e..be7d037a73 100644 --- a/roles/copr/frontend/templates/copr.conf +++ b/roles/copr/frontend/templates/copr.conf @@ -51,3 +51,11 @@ FEDMENU_DATA_URL = "https://apps.stg.fedoraproject.org/js/data.js" FEDMENU_URL = "https://apps.fedoraproject.org/fedmenu/" FEDMENU_DATA_URL = "https://apps.fedoraproject.org/js/data.js" {% endif %} + +{% if env == 'staging %} +ENFORCE_PROTOCOL_FOR_BACKEND_URL = "http" +ENFORCE_PROTOCOL_FOR_FRONTEND_URL = "http" +{% else %} +ENFORCE_PROTOCOL_FOR_BACKEND_URL = "https" +ENFORCE_PROTOCOL_FOR_FRONTEND_URL = "https" +{% endif %}