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

Unified Diff: modules/web/templates/site.erb

Issue 4884212985364480: Allow running multiplexer on web servers (Closed)
Patch Set: Created Dec. 18, 2013, 7:02 a.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/web/manifests/server.pp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/web/templates/site.erb
===================================================================
--- a/modules/web/templates/site.erb
+++ b/modules/web/templates/site.erb
@@ -78,9 +78,19 @@ server
if (-f $document_root/$preferredLang$canonical)
{
rewrite ^ /$preferredLang$canonical last;
}
if (-f $document_root/en$canonical)
{
rewrite ^ /en$canonical last;
}
+
+ <% if @multiplexer_locations %>
+ <% @multiplexer_locations.each do |location| %>
+ location <%= location %>
+ {
+ fastcgi_pass unix:/tmp/multiplexer-fastcgi.sock;
+ include /etc/nginx/fastcgi_params;
+ }
+ <% end %>
+ <% end %>
}
« no previous file with comments | « modules/web/manifests/server.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld