From f00b5c16c3c2bd138569b38cbfb6bf724a9a447c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mon, 6 May 2019 16:26:20 +0200 Subject: [PATCH] pagure-stg: Fix the FAS URL to use in staging Signed-off-by: Pierre-Yves Chibon --- roles/pagure/frontend/templates/pagure.cfg | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/pagure/frontend/templates/pagure.cfg b/roles/pagure/frontend/templates/pagure.cfg index 1be0c31fba..2615009d99 100644 --- a/roles/pagure/frontend/templates/pagure.cfg +++ b/roles/pagure/frontend/templates/pagure.cfg @@ -20,6 +20,11 @@ EMAIL_SEND = True # This is required so that login specifies https PREFERRED_URL_SCHEME='https' +{% if env == 'pagure-staging' %} +# OpenID server to use +FAS_OPENID_ENDPOINT = 'https://id.stg.fedoraproject.org/openid/' +{% endif %} + ### url to the database server: #DB_URL=mysql://user:pass@host/db_name #DB_URL=postgres://user:pass@host/db_name @@ -50,8 +55,6 @@ DOMAIN_EMAIL_NOTIFICATIONS = 'pagure.io' {% if env == 'pagure-staging' %} APP_URL = 'https://stg.pagure.io/' DOC_APP_URL = 'https://docs.stg.pagure.org' - -FAS_BASE_URL = 'https://admin.stg.fedoraproject.org/accounts/' {% else %} APP_URL = 'https://pagure.io/' DOC_APP_URL = 'https://docs.pagure.org'