make ssl verification configurable

This commit is contained in:
tawoe 2022-04-25 18:33:58 +02:00
parent 2363bdc1dc
commit 281b1da913

View File

@ -273,6 +273,8 @@ API_EXPLORER_APP_NAME = 'API Explorer'
LOGO_URL = 'https://static.openbankproject.com/images/OBP/favicon.png'
OVERRIDE_CSS_URL = None
VERIFY = True if API_HOST.startswith("https") else False
# Local settings can override anything in here
try:
from apimanager.local_settings import * # noqa
@ -284,8 +286,6 @@ API_ROOT = API_HOST + API_BASE_PATH + API_VERSION
# For some reason, swagger is not available at the latest API version
API_URL_SWAGGER = API_HOST + '/obp/v1.4.0/resource-docs/v' + API_VERSION + '/swagger' # noqa
VERIFY = True if API_HOST.startswith("https") else False
if not OAUTH_CONSUMER_KEY:
raise ImproperlyConfigured('Missing settings for OAUTH_CONSUMER_KEY')
if not OAUTH_CONSUMER_SECRET: