waiverdb role: set the secret key based on the env
This commit is contained in:
parent
c3f7563a61
commit
fe08e4c782
1 changed files with 7 additions and 1 deletions
|
@ -1,2 +1,8 @@
|
|||
SECRET_KEY = '{{ waiverdb_secret_key }}'
|
||||
{% if env == "production" %}
|
||||
SECRET_KEY = '{{ prod_waiverdb_secret_key }}'
|
||||
{% elif env == "staging" %}
|
||||
SECRET_KEY = '{{ stg_waiverdb_secret_key }}'
|
||||
{% else %}
|
||||
SECRET_KEY = '{{ dev_waiverdb_secret_key }}'
|
||||
{% endif %}
|
||||
SQLALCHEMY_DATABASE_URI = 'postgresql://waiverdb_user@:{{ waiverdb_db_port }}/waiverdb
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue