From 7b4172bf9329f1916259302b0636a4ac928624f8 Mon Sep 17 00:00:00 2001 From: Perside Rosalie Date: Wed, 27 Nov 2024 10:59:54 +0100 Subject: [PATCH 1/2] Staging: Route 2 wikis to alpha mediawiki deployment --- k8s/helmfile/env/staging/platform-nginx.nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/k8s/helmfile/env/staging/platform-nginx.nginx.conf b/k8s/helmfile/env/staging/platform-nginx.nginx.conf index 3f58d098..58f83284 100644 --- a/k8s/helmfile/env/staging/platform-nginx.nginx.conf +++ b/k8s/helmfile/env/staging/platform-nginx.nginx.conf @@ -74,6 +74,10 @@ server { if ($host = "anton2.wikibase.dev") { set $mwgroup "alpha"; } + # Allow 2 wikis with WBQC enabled to point to mediawiki-alpha deployment + if ($host = "wbqc.wikibase.dev" || "wbqc2.wikibase.dev") { + set $mwgroup "alpha"; + } ############# Locations ############# From 8c81d7b46708c9ff903d68d69c0fe2c76bcb4e40 Mon Sep 17 00:00:00 2001 From: Perside Rosalie Date: Wed, 27 Nov 2024 11:06:38 +0100 Subject: [PATCH 2/2] Fix spacing and indentation --- k8s/helmfile/env/staging/platform-nginx.nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/k8s/helmfile/env/staging/platform-nginx.nginx.conf b/k8s/helmfile/env/staging/platform-nginx.nginx.conf index 58f83284..81944e69 100644 --- a/k8s/helmfile/env/staging/platform-nginx.nginx.conf +++ b/k8s/helmfile/env/staging/platform-nginx.nginx.conf @@ -74,9 +74,10 @@ server { if ($host = "anton2.wikibase.dev") { set $mwgroup "alpha"; } + # Allow 2 wikis with WBQC enabled to point to mediawiki-alpha deployment if ($host = "wbqc.wikibase.dev" || "wbqc2.wikibase.dev") { - set $mwgroup "alpha"; + set $mwgroup "alpha"; } ############# Locations #############