diff --git a/roles/fedoauth/templates/fedoauth.cfg b/roles/fedoauth/templates/fedoauth.cfg index 01037b72d4..1de06d83e5 100644 --- a/roles/fedoauth/templates/fedoauth.cfg +++ b/roles/fedoauth/templates/fedoauth.cfg @@ -1,14 +1,12 @@ # Beware that the quotes around the values are mandatory # GENERAL CONFIGURATION -{% if env == 'staging' %} -SQLALCHEMY_DATABASE_URI="postgresql://{{ fedoauth_db_user }}:{{ fedoauth_db_pass }}@{{ fedoauth_db_host }}.stg/{{ fedoauth_db_name }}" -{% else %} -SQLALCHEMY_DATABASE_URI="postgresql://{{ fedoauth_db_user }}:{{ fedoauth_db_pass }}@{{ fedoauth_db_host }}/{{ fedoauth_db_name }}" -{% endif %} - - GLOBAL = {'reverse_proxied': True, +{% if env == 'staging' %} +'database_url': "postgresql://{{ fedoauth_db_user }}:{{ fedoauth_db_pass }}@{{ fedoauth_db_host }}.stg/{{ fedoauth_db_name }}", +{% else %} +'database_url': "postgresql://{{ fedoauth_db_user }}:{{ fedoauth_db_pass }}@{{ fedoauth_db_host }}/{{ fedoauth_db_name }}", +{% endif %} 'cookies_secure': True, 'transactions_timeout': 5, 'global_template_dir': '/usr/share/fedoauth/templates/global/',