Skip to content

Commit

Permalink
Merge pull request OpenBankProject#169 from tawoe/update_config
Browse files Browse the repository at this point in the history
make ssl verification configurable
  • Loading branch information
simonredfern authored Apr 26, 2022
2 parents 2363bdc + 281b1da commit c363588
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 c363588

Please sign in to comment.