From dc0ef80d46379ca880782550de4c6f175032b69e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mon, 29 Apr 2019 15:27:02 +0200 Subject: [PATCH] elections: Adjust the APPLICATION_ROOT in stg vs prod Signed-off-by: Pierre-Yves Chibon --- .../openshift-apps/elections/templates/fedora-elections.cfg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/openshift-apps/elections/templates/fedora-elections.cfg b/roles/openshift-apps/elections/templates/fedora-elections.cfg index 4d39f2117b..58773ffde9 100644 --- a/roles/openshift-apps/elections/templates/fedora-elections.cfg +++ b/roles/openshift-apps/elections/templates/fedora-elections.cfg @@ -7,8 +7,12 @@ SECRET_KEY='{{ elections_secret_key }}' ### url to the database server: {% if env == 'staging' %} +# Used by SESSION_COOKIE_PATH +APPLICATION_ROOT = '/' DB_URL='postgresql://{{ elections_db_user }}:{{ elections_db_pass }}@db01.stg.phx2.fedoraproject.org/{{ elections_db_name }}' {% else %} +# Used by SESSION_COOKIE_PATH +APPLICATION_ROOT = '/voting/' DB_URL='postgresql://{{ elections_db_user }}:{{ elections_db_pass }}@db01.phx2.fedoraproject.org/elections_db_name }}' {% endif %} @@ -42,8 +46,6 @@ PREFERRED_URL_SCHEME='https' SESSION_COOKIE_SECURE = True SESSION_COOKIE_NAME = 'elections' -# Used by SESSION_COOKIE_PATH -APPLICATION_ROOT = '/voting/' DOGPILE_CACHE = { 'backend': 'dogpile.cache.memcached',