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 %}