Skip to content

Commit

Permalink
make ssl verification configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
tawoe committed Apr 25, 2022
1 parent 2363bdc commit 281b1da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apimanager/apimanager/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@
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
Expand All @@ -284,8 +286,6 @@
# 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:
Expand Down

0 comments on commit 281b1da

Please sign in to comment.