Separate event and mail delivery credentials
This commit is contained in:
parent
9480463b24
commit
a0f39f58bd
4 changed files with 45 additions and 9 deletions
|
|
@ -52,8 +52,13 @@ def create_application() -> PortalApplication:
|
|||
)
|
||||
outbox_delivery = HTTPOutboxDeliveryAdapter(
|
||||
event_url=_required("USER_ENGINE_EVENT_URL"),
|
||||
event_bearer_token=_required("USER_ENGINE_EVENT_TOKEN"),
|
||||
mail_url=os.environ.get("USER_ENGINE_MAIL_URL"),
|
||||
bearer_token=_required("USER_ENGINE_DELIVERY_TOKEN"),
|
||||
mail_bearer_token=(
|
||||
_required("USER_ENGINE_MAIL_TOKEN")
|
||||
if os.environ.get("USER_ENGINE_MAIL_URL")
|
||||
else None
|
||||
),
|
||||
timeout_seconds=float(os.environ.get("USER_ENGINE_DELIVERY_TIMEOUT", "5")),
|
||||
)
|
||||
return PortalApplication(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue