diff --git a/roles/openshift-apps/elections/templates/fedora-elections.cfg b/roles/openshift-apps/elections/templates/fedora-elections.cfg index 58773ffde9..ae7b55869a 100644 --- a/roles/openshift-apps/elections/templates/fedora-elections.cfg +++ b/roles/openshift-apps/elections/templates/fedora-elections.cfg @@ -5,15 +5,14 @@ import os ### Secret key for the Flask application SECRET_KEY='{{ elections_secret_key }}' -### url to the database server: -{% if env == 'staging' %} # Used by SESSION_COOKIE_PATH APPLICATION_ROOT = '/' + +### url to the database server: +{% if env == 'staging' %} 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 }}' +DB_URL='postgresql://{{ elections_db_user }}:{{ elections_db_pass }}@db01.phx2.fedoraproject.org/{{ elections_db_name }}' {% endif %} ## One ore more FAS group that will have admin rights over the whole