Skip to content

Commit

Permalink
make cem ssl verification configurable (#115)
Browse files Browse the repository at this point in the history
CPNHUB-244
  • Loading branch information
petrjasek authored Jun 27, 2023
1 parent 39ccfa8 commit 741e476
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/cp/cem.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ def send_notification(_type, user):
timeout=5,
json=payload,
headers=headers,
verify=bool(app.config.get("CEM_VERIFY_TLS", True)),
)
2 changes: 2 additions & 0 deletions server/settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import pathlib
from flask_babel import lazy_gettext
from superdesk.default_settings import strtobool
from newsroom.web.default_settings import (
env,
CLIENT_CONFIG,
Expand Down Expand Up @@ -271,5 +272,6 @@
CEM_URL = os.environ.get("CEM_URL", "")
CEM_APIKEY = os.environ.get("CEM_APIKEY", "")
CEM_PLATFORM = os.environ.get("CEM_PLATFORM", "NewsPro")
CEM_VERIFY_TLS = strtobool(os.environ.get("CEM_VERIFY_TLS", "off"))

DEFAULT_ALLOW_COMPANIES_TO_MANAGE_PRODUCTS = True

0 comments on commit 741e476

Please sign in to comment.