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

Unified Diff: modules/hgweb/files/nginx.conf

Issue 29323409: Issue 2867 - Introduce module hgweb and corresponding server role (Closed)
Patch Set: Issue 2867 - Now the complete patch-set again Created Aug. 17, 2015, 6:17 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/hgweb/files/hgweb.sh ('k') | modules/hgweb/files/robots.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/hgweb/files/nginx.conf
diff --git a/modules/hgweb/files/nginx.conf b/modules/hgweb/files/nginx.conf
new file mode 100644
index 0000000000000000000000000000000000000000..f97a73b099701108db7e806f8d6b12aaf74f1575
--- /dev/null
+++ b/modules/hgweb/files/nginx.conf
@@ -0,0 +1,17 @@
+add_header Strict-Transport-Security "max-age=2592000";
Wladimir Palant 2015/08/24 16:49:48 This is duplicating String-Transport-Security head
mathias 2015/08/24 17:38:46 Done.
+
+location / {
Wladimir Palant 2015/08/24 16:49:48 We generally put opening brackets on the next line
mathias 2015/08/24 17:38:46 Done.
+ root /home/hg/web;
+ rewrite ^/customization/(.*) /abpcustomization/$1 permanent;
+ fastcgi_pass unix:/var/run/hgweb.sock;
+ include fastcgi_params;
+ fastcgi_param SCRIPT_NAME "";
+}
+
+location /static/ {
+ root /usr/share/mercurial/templates;
Wladimir Palant 2015/08/24 16:49:48 This isn't pointing to the Mercurial instance runn
mathias 2015/08/24 17:38:46 Done.
+}
+
+location /robots.txt {
+ root /home/hg/web;
+}
« no previous file with comments | « modules/hgweb/files/hgweb.sh ('k') | modules/hgweb/files/robots.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld