From 682fbe86e99e5f79b54bdfa98ee18aa66c162453 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 4 Mar 2014 13:14:05 +0100 Subject: [PATCH] Specify the APP_URL in fedocal, and different for stg and prod --- roles/fedocal/templates/fedocal.cfg | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/fedocal/templates/fedocal.cfg b/roles/fedocal/templates/fedocal.cfg index 786f321e45..a73e77b5dc 100644 --- a/roles/fedocal/templates/fedocal.cfg +++ b/roles/fedocal/templates/fedocal.cfg @@ -32,3 +32,10 @@ PATH_ALEMBIC_INI='/etc/fedocal/alembic.ini' # This is required to fix login PREFERRED_URL_SCHEME='https' + +{% if env == 'staging' %} +APP_URL = 'https://apps.stg.fedoraproject.org/calendar/' +{% else %} +APP_URL = 'https://apps.fedoraproject.org/calendar/' +{% endif %} +