John F. Lewis has uploaded a new change for review. https://gerrit.wikimedia.org/r/181419
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 Change-Id: I5c13fab0f5777acd7847731f18d0e35b0f5c066a --- M templates/varnish/misc.inc.vcl.erb 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/19/181419/1 diff --git a/templates/varnish/misc.inc.vcl.erb b/templates/varnish/misc.inc.vcl.erb index a407513..8d9e262 100644 --- a/templates/varnish/misc.inc.vcl.erb +++ b/templates/varnish/misc.inc.vcl.erb @@ -49,6 +49,8 @@ return (pass); } elsif (req.http.Host == "noc.wikimedia.org") { set req.backend = terbium; + } 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: newchange Gerrit-Change-Id: I5c13fab0f5777acd7847731f18d0e35b0f5c066a Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: John F. Lewis <johnflewi...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits