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

Unified Diff: modules/hgweb/templates/nginx.conf.erb

Issue 29328647: Issue 3115 - Cache hgweb RSS and Atom logs (Closed)
Patch Set: Created Sept. 25, 2015, 2:26 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/hgweb/manifests/init.pp ('k') | modules/hgweb/templates/nginx_global.conf.erb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/hgweb/templates/nginx.conf.erb
diff --git a/modules/hgweb/templates/nginx.conf.erb b/modules/hgweb/templates/nginx.conf.erb
index ff7478d68c8f8549efb41b46004ccaaa5f9e1b26..e4b09fe5c32054523a2529b216bfe5e502c30396 100644
--- a/modules/hgweb/templates/nginx.conf.erb
+++ b/modules/hgweb/templates/nginx.conf.erb
@@ -7,6 +7,18 @@ location /
fastcgi_param SCRIPT_NAME "";
}
+location ~ /[^/]+/(atom|rss)-log
+{
+ root /home/hg/web;
+ fastcgi_pass unix:/var/run/hgweb.sock;
+ include fastcgi_params;
+ fastcgi_param SCRIPT_NAME "";
+ fastcgi_cache hgwebfeed;
+ fastcgi_cache_key $uri;
+ fastcgi_cache_lock on;
+ fastcgi_cache_valid 200 5m;
+}
+
location /static/
{
root <%= @templates %>;
« no previous file with comments | « modules/hgweb/manifests/init.pp ('k') | modules/hgweb/templates/nginx_global.conf.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld