From 5427e627dc802b844fbf50eb9572ef91396c9f5f Mon Sep 17 00:00:00 2001 From: Sajeyks Date: Mon, 2 Nov 2026 18:03:09 +0300 Subject: [PATCH] Document UNGLEICH_SITE_ALIASES in K8S.md --- K8S.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/K8S.md b/K8S.md index ff1ba788..97ae2615 100644 --- a/K8S.md +++ b/K8S.md @@ -48,6 +48,9 @@ before each install or upgrade. PostgreSQL 18 is **not** in the chart: create it same uploads, so the storage class has to support it). - **Keep the original `Host` header** at the ingress (the default). The site is chosen from the host, and every domain must be in `UNGLEICH_SITE_CONFIGS` and `ALLOWED_HOSTS` (`dynamicweb/settings/prod.py`). + An unknown host is redirected to datacenterlight.ch. To show an existing site on another host + (a demo domain), add `UNGLEICH_SITE_ALIASES={"demo.example.org":"datacenterlight.ch"}` to the Secret and + run the migrate Job again; the host is also allowed in `ALLOWED_HOSTS`. - **The Secret must exist before `helm install`** (the Job reads it). - **Logs:** `kubectl logs deploy/dynamicweb-web`, `deploy/dynamicweb-celery`. - **Why a database Service named `postgres` is safe:** the pods set `enableServiceLinks: false`;