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"; |
+ |
+location / { |
+ 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; |
+} |
+ |
+location /robots.txt { |
+ root /home/hg/web; |
+} |