waiverdb: use the iad2 db server when running in iad2
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
cc8d0d17aa
commit
4f63e6e74f
1 changed files with 4 additions and 0 deletions
|
@ -3,7 +3,11 @@ DATABASE_URI = 'postgresql+psycopg2://waiverdb@db01.stg.phx2.fedoraproject.org:5
|
|||
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'
|
||||
{% else %}
|
||||
DATABASE_URI = 'postgresql+psycopg2://waiverdb@db01.phx2.fedoraproject.org:5432/waiverdb'
|
||||
{% endif %}
|
||||
RESULTSDB_API_URL = 'https://taskotron.fedoraproject.org/resultsdb_api/api/v2.0'
|
||||
CORS_URL = 'https://bodhi.fedoraproject.org'
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue