Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/adblockplus/templates/web/redirector.conf.erb

Issue 29481679: #1975 - Introduce class adblockplus::web::redirector (Closed)
Patch Set: Fix examples section in class documentation Created July 6, 2017, 5:12 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/adblockplus/manifests/web/redirector.pp ('k') | modules/private-stub/hiera/hosts.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/adblockplus/templates/web/redirector.conf.erb
diff --git a/modules/adblockplus/templates/web/redirector.conf.erb b/modules/adblockplus/templates/web/redirector.conf.erb
new file mode 100644
index 0000000000000000000000000000000000000000..245876d17450b60407f1c22c8b341456af895d3d
--- /dev/null
+++ b/modules/adblockplus/templates/web/redirector.conf.erb
@@ -0,0 +1,11 @@
+# Puppet: <%= @title %>
+
+# http://hub.eyeo.com/issues/1975
+location /
+{
+<%- @targets.sort.each do |key, target| -%>
+ rewrite ^/<%= key %>(/.*)?$ "<%= target %>" break;
+<%- end -%>
+ rewrite ^/.*$ "<%= @default %>" last;
+}
+
« no previous file with comments | « modules/adblockplus/manifests/web/redirector.pp ('k') | modules/private-stub/hiera/hosts.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld