Dr0ptp4kt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/92818
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(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/18/92818/1
diff --git a/templates/varnish/zero.inc.vcl.erb
b/templates/varnish/zero.inc.vcl.erb
index 8eaa319..a32d89a 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: newchange
Gerrit-Change-Id: I2d912409e48d367431d5afb63f8994c2aeb2c9db
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Dr0ptp4kt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits