2014-07-02 15:26:36 +00:00
|
|
|
{%- if deployment_type == 'prod' %}
|
|
|
|
SECRET_KEY = '{{ prod_resultsdb_secret_key }}'
|
2014-07-08 04:04:37 +00:00
|
|
|
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://{{ prod_resultsdb_db_user }}:{{ prod_resultsdb_db_password }}@{{ resultsdb_db_host }}:{{ resultsdb_db_port }}/{{ resultsdb_db_name }}'
|
2014-07-02 15:26:36 +00:00
|
|
|
{% endif %}
|
|
|
|
{%- if deployment_type == 'stg' %}
|
|
|
|
SECRET_KEY = '{{ stg_resultsdb_secret_key }}'
|
2014-07-08 04:04:37 +00:00
|
|
|
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://{{ stg_resultsdb_db_user }}:{{ stg_resultsdb_db_password }}@{{ resultsdb_db_host }}:{{ resultsdb_db_port }}/{{ resultsdb_db_name }}'
|
2014-07-02 15:26:36 +00:00
|
|
|
{% endif %}
|
|
|
|
{%- if deployment_type == 'dev' %}
|
|
|
|
SECRET_KEY = '{{ dev_resultsdb_secret_key }}'
|
2014-07-08 04:04:37 +00:00
|
|
|
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://{{ dev_resultsdb_db_user }}:{{ dev_resultsdb_db_password }}@{{ resultsdb_db_host }}:{{ resultsdb_db_port }}/{{ resultsdb_db_name }}'
|
2014-07-02 15:26:36 +00:00
|
|
|
{% endif %}
|
2014-06-05 03:22:07 +00:00
|
|
|
FILE_LOGGING = False
|
|
|
|
LOGFILR = '/var/log/resultsdb/resultsdb.log'
|
|
|
|
SYSLOG_LOGGING = False
|
|
|
|
STREAM_LOGGING = True
|