waiverdb role: fix the settings.py template
This commit is contained in:
parent
6da940f3fd
commit
2adc74f3d5
2 changed files with 4 additions and 5 deletions
|
@ -12,6 +12,7 @@ hostbase: waverdb-dev
|
||||||
public_ip: 209.132.184.51
|
public_ip: 209.132.184.51
|
||||||
root_auth_users: mjia
|
root_auth_users: mjia
|
||||||
description: waverdb development instance
|
description: waverdb development instance
|
||||||
|
deployment_type: dev
|
||||||
|
|
||||||
cloud_networks:
|
cloud_networks:
|
||||||
# persistent-net
|
# persistent-net
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{% if env == "production" %}
|
{% if deployment_type == "prod" %}
|
||||||
SECRET_KEY = '{{ prod_waiverdb_secret_key }}'
|
SECRET_KEY = '{{ prod_waiverdb_secret_key }}'
|
||||||
{% elif env == "staging" %}
|
{% elif deployment_type == "stg" %}
|
||||||
SECRET_KEY = '{{ stg_waiverdb_secret_key }}'
|
SECRET_KEY = '{{ stg_waiverdb_secret_key }}'
|
||||||
{% else %}
|
{% else %}
|
||||||
SECRET_KEY = '{{ dev_waiverdb_secret_key }}'
|
SECRET_KEY = '{{ dev_waiverdb_secret_key }}'
|
||||||
|
@ -9,8 +9,6 @@ SQLALCHEMY_DATABASE_URI = 'postgresql://waiverdb-user@:{{ waiverdb_db_port }}/wa
|
||||||
OIDC_CLIENT_SECRETS = '/etc/waiverdb/client_secrets.json'
|
OIDC_CLIENT_SECRETS = '/etc/waiverdb/client_secrets.json'
|
||||||
OIDC_REQUIRED_SCOPE = 'https://waiverdb.fedoraproject.org/oidc/create-waiver'
|
OIDC_REQUIRED_SCOPE = 'https://waiverdb.fedoraproject.org/oidc/create-waiver'
|
||||||
OIDC_RESOURCE_SERVER_ONLY = True
|
OIDC_RESOURCE_SERVER_ONLY = True
|
||||||
{% if env == "production" or env == "staging" %}
|
{% if deployment_type == "dev" %}
|
||||||
ZEROMQ_PUBLISH = True
|
|
||||||
{% else %}
|
|
||||||
ZEROMQ_PUBLISH = False
|
ZEROMQ_PUBLISH = False
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue