Dzahn has submitted this change and it was merged.
Change subject: planets: add Varnish statement
......................................................................
planets: add Varnish statement
Uses regex to catch *.planet.wikimedia.org as there are currently
24 subdomains. Listing them off separately in a line is possible
but looks ugly vs this ugly regex.
Bug: T60048
Bug: T85789
Change-Id: I5c13fab0f5777acd7847731f18d0e35b0f5c066a
---
M templates/varnish/misc.inc.vcl.erb
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
jenkins-bot: Verified
Dzahn: Looks good to me, approved
diff --git a/templates/varnish/misc.inc.vcl.erb
b/templates/varnish/misc.inc.vcl.erb
index 4e42d2e..c61cc72 100644
--- a/templates/varnish/misc.inc.vcl.erb
+++ b/templates/varnish/misc.inc.vcl.erb
@@ -53,6 +53,8 @@
set req.backend = terbium;
} elsif (req.http.Host == "hue.wikimedia.org") {
set req.backend = analytics1027;
+ } elsif (req.http.Host ~ ".*\.planet\.wikimedia\.org") {
+ set req.backend = zirconium;
} else {
error 404 "Domain not served here";
}
--
To view, visit https://gerrit.wikimedia.org/r/181419
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I5c13fab0f5777acd7847731f18d0e35b0f5c066a
Gerrit-PatchSet: 4
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: John F. Lewis <[email protected]>
Gerrit-Reviewer: Dzahn <[email protected]>
Gerrit-Reviewer: Filippo Giunchedi <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits