Handle deprecation of old config flag for FedOAuth

This commit is contained in:
Patrick Uiterwijk 2015-02-04 16:50:40 +00:00
parent 959e9b9f51
commit 997db6c6ba

View file

@ -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/',