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

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

Issue 5777328449781760: Concept for Trac as issue tracker. (Closed)
Patch Set: Adressed typo forgotten in former patch. Created March 6, 2014, 2:49 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
Index: modules/trac/templates/site.erb
===================================================================
new file mode 100644
--- /dev/null
+++ b/modules/trac/templates/site.erb
@@ -0,0 +1,29 @@
+server {
+ server_name <%= @domain %>;
+ <% if is_default %>
+ listen 80 default_server;
+ listen [::]:80 default_server;
+ <% else %>
+ listen 80;
+ listen [::]:80;
+ <% end %>
+
+ location /
+ {
+ set $path_info $request_uri;
+ if ($path_info ~ "(.*?)\?")
+ {
+ set $path_info $1;
+ }
+
+ fastcgi_pass unix:/tmp/trac-fastcgi.sock;
+ include /etc/nginx/fastcgi_params;
+ fastcgi_param SCRIPT_NAME "";
+ fastcgi_param PATH_INFO $path_info;
+ }
+
+ location /chrome/
+ {
+ alias /home/trac/htdocs/htdocs/;
+ }
+}

Powered by Google App Engine
This is Rietveld