Faidon Liambotis has submitted this change and it was merged.
Change subject: Further constrain W0 X-CS setting to mobile Wikipedia, for now.
......................................................................
Further constrain W0 X-CS setting to mobile Wikipedia, for now.
* In a future state this will be updated to support more projects.
* But for now, the X-CS fallthrough should only be set if it's a mobile
Wikipedia.
Change-Id: I2d912409e48d367431d5afb63f8994c2aeb2c9db
---
M templates/varnish/zero.inc.vcl.erb
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
QChris: Looks good to me, but someone else must approve
Yurik: Looks good to me, but someone else must approve
Faidon Liambotis: Looks good to me, approved
jenkins-bot: Verified
diff --git a/templates/varnish/zero.inc.vcl.erb
b/templates/varnish/zero.inc.vcl.erb
index 26c4253..5a8bfe6 100644
--- a/templates/varnish/zero.inc.vcl.erb
+++ b/templates/varnish/zero.inc.vcl.erb
@@ -188,7 +188,7 @@
if (req.http.host ~
"(^(ru|kk|en)\.(zero|m)|^(zero|m))\.wikipedia\.") {
set req.http.X-CS = "401-01";
}
- } else {
+ } else if (req.http.host ~ "(zero|m)\.wikipedia\.") {
// Any new carriers are signed up as both m & zero for all
languages
set req.http.X-CS = req.http.X-CS2;
}
--
To view, visit https://gerrit.wikimedia.org/r/92818
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2d912409e48d367431d5afb63f8994c2aeb2c9db
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dr0ptp4kt <[email protected]>
Gerrit-Reviewer: Awjrichards <[email protected]>
Gerrit-Reviewer: BBlack <[email protected]>
Gerrit-Reviewer: Diederik <[email protected]>
Gerrit-Reviewer: Dr0ptp4kt <[email protected]>
Gerrit-Reviewer: Faidon Liambotis <[email protected]>
Gerrit-Reviewer: Mark Bergsma <[email protected]>
Gerrit-Reviewer: MaxSem <[email protected]>
Gerrit-Reviewer: QChris <[email protected]>
Gerrit-Reviewer: Yurik <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits