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: Cleaned my working branch and adressed remarks from patch 3. Created March 6, 2014, 5:51 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/trac/manifests/init.pp ('k') | modules/trac/templates/trac.ini.erb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/;
+ }
+}
« no previous file with comments | « modules/trac/manifests/init.pp ('k') | modules/trac/templates/trac.ini.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld