36 lines
1.4 KiB
Python
36 lines
1.4 KiB
Python
HOST= '0.0.0.0'
|
|
PORT = 8080
|
|
DEBUG = False
|
|
POLICIES_DIR = '/etc/greenwave/'
|
|
|
|
{% if env == 'staging' %}
|
|
DIST_GIT_BASE_URL = 'https://src.stg.fedoraproject.org'
|
|
DIST_GIT_URL_TEMPLATE = '{DIST_GIT_BASE_URL}/{pkg_namespace}/{pkg_name}/raw/{rev}/f/gating.yaml'
|
|
KOJI_BASE_URL = 'https://koji.stg.fedoraproject.org/kojihub'
|
|
BODHI_URL = 'https://bodhi.stg.fedoraproject.org/'
|
|
|
|
SECRET_KEY = '{{stg_greenwave_secret_key}}'
|
|
WAIVERDB_API_URL = 'https://waiverdb-web-waiverdb.app.os.stg.fedoraproject.org/api/v1.0'
|
|
RESULTSDB_API_URL = 'https://taskotron.stg.fedoraproject.org/resultsdb_api/api/v2.0'
|
|
CORS_URL = '*'
|
|
{% else %}
|
|
DIST_GIT_BASE_URL = 'https://src.fedoraproject.org'
|
|
DIST_GIT_URL_TEMPLATE = '{DIST_GIT_BASE_URL}/{pkg_namespace}/{pkg_name}/raw/{rev}/f/gating.yaml'
|
|
KOJI_BASE_URL = 'https://koji.fedoraproject.org/kojihub'
|
|
BODHI_URL = 'https://bodhi.fedoraproject.org/'
|
|
|
|
SECRET_KEY = '{{prod_greenwave_secret_key}}'
|
|
WAIVERDB_API_URL = 'https://waiverdb-web-waiverdb.app.os.fedoraproject.org/api/v1.0'
|
|
RESULTSDB_API_URL = 'https://taskotron.fedoraproject.org/resultsdb_api/api/v2.0'
|
|
GREENWAVE_API_URL = 'https://greenwave-web-greenwave.app.os.fedoraproject.org/api/v1.0'
|
|
CORS_URL = 'https://bodhi.fedoraproject.org'
|
|
{% endif %}
|
|
|
|
CACHE = {
|
|
'backend': 'dogpile.cache.memcached',
|
|
'expiration_time': 3600, # 3600 is 1 hour
|
|
'arguments': {
|
|
'url': 'greenwave-memcached:11211',
|
|
'distributed_lock': True
|
|
}
|
|
}
|