Separate event and mail delivery credentials
All checks were successful
CI Smoke / host-smoke (push) Successful in 0s
CI Smoke / container-smoke (push) Successful in 1s

This commit is contained in:
tegwick 2026-08-13 14:56:24 +02:00
parent 9480463b24
commit a0f39f58bd
4 changed files with 45 additions and 9 deletions

View file

@ -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(