Correct the database URLs for badges-backend in staging

Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
Ryan Lercho 2021-08-23 12:33:53 +10:00 committed by kevin
parent 5c709e38e5
commit f561217bdf
2 changed files with 8 additions and 1 deletions

View file

@ -13,8 +13,11 @@ config = {
"badges_global": {
# This is a sqlalchemy URI that points to the tahrir DB.
{% if env == 'staging' %}
"database_uri": "postgresql://{{tahrirDBUser}}:{{tahrirDBPassword}}@db01.stg.iad2.fedoraproject.org/tahrir",
{% else %}
"database_uri": "postgresql://{{tahrirDBUser}}:{{tahrirDBPassword}}@db-tahrir/tahrir",
{% endif %}
# This is a set of data that tells our consumer what Open Badges Issuer
# should be kept as the issuer of all the badges we create.
"badge_issuer": dict(

View file

@ -1,3 +1,7 @@
config = {
{% if env == "staging" %}
'datanommer.sqlalchemy.url': 'postgresql://{{datanommerDBUser}}:{{datanommerDBPassword}}@db-datanommer.stg.iad2.fedoraproject.org/datanommer',
{% else %}
'datanommer.sqlalchemy.url': 'postgresql://{{datanommerDBUser}}:{{datanommerDBPassword}}@db-datanommer/datanommer',
{% endif %}
}