🔍 Overview

Domain Bridge is a lightweight redirect service used together with Tracking Domain Pipelines when proxy mode is enabled.

It performs a catch-all redirect:

  • reads the current host (domain)
  • looks up the target domain in a dedicated Redis instance (redis-domain-bridge)
  • redirects to https://<target-domain>/<path>?<query>

If no mapping exists, it returns 500.


🧩 Redis mapping

Mappings are maintained by TrackingDomainPipeline when:

  • with_proxy=True
  • redirect_from is set
  • active_domain is set
  • is_active=True

In this case Link Switcher keeps a key-value mapping:

  • key: redirect_from
  • value: active_domain

The mapping is synced on pipeline save/delete.


⚙️ Behavior

  • Always redirects to HTTPS.
  • Preserves the original path and query string.
  • Intended to be used as a separate entrypoint/URLconf (apps/domain_bridge/urls_redirect.py).

🛠️ Configuration

Domain Bridge uses a dedicated Redis instance:

  • REDIS_DOMAIN_BRIDGE_HOST
  • REDIS_DOMAIN_BRIDGE_PORT
  • REDIS_DOMAIN_BRIDGE_DB

🩺 Health check

Domain Bridge exposes a dedicated health-check endpoint:

  • /ht/<HEALTH_CHECK_SECURITY_KEY>/

The check validates connectivity to redis-domain-bridge.

0 items under this folder.