waiverdb: fix the url to postgresql in stg/prod

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-11-20 14:35:36 +01:00
parent abdfb6e51d
commit ebe4058bd0

View file

@ -1,11 +1,9 @@
{% if env == 'staging' %}
DATABASE_URI = 'postgresql+psycopg2://waiverdb@db01.stg.phx2.fedoraproject.org:5432/waiverdb'
DATABASE_URI = 'postgresql+psycopg2://waiverdb@db01.stg.iad2.fedoraproject.org:5432/waiverdb'
RESULTSDB_API_URL = 'https://taskotron.stg.fedoraproject.org/resultsdb_api/api/v2.0'
CORS_URL = 'https://bodhi.stg.fedoraproject.org'
{% else %}
{% if datacenter == "iad2" %}
DATABASE_URI = 'postgresql+psycopg2://waiverdb@db01.iad2.fedoraproject.org:5432/waiverdb'
{% endif %}
RESULTSDB_API_URL = 'https://taskotron.fedoraproject.org/resultsdb_api/api/v2.0'
CORS_URL = 'https://bodhi.fedoraproject.org'
{% endif %}