OLD | NEW |
1 add_header Strict-Transport-Security "max-age=2592000"; | 1 location / |
2 | 2 { |
3 location / { | |
4 root /home/hg/web; | 3 root /home/hg/web; |
5 rewrite ^/customization/(.*) /abpcustomization/$1 permanent; | 4 rewrite ^/customization/(.*) /abpcustomization/$1 permanent; |
6 fastcgi_pass unix:/var/run/hgweb.sock; | 5 fastcgi_pass unix:/var/run/hgweb.sock; |
7 include fastcgi_params; | 6 include fastcgi_params; |
8 fastcgi_param SCRIPT_NAME ""; | 7 fastcgi_param SCRIPT_NAME ""; |
9 } | 8 } |
10 | 9 |
11 location /static/ { | 10 location /static/ |
12 root /usr/share/mercurial/templates; | 11 { |
| 12 root <%= @templates %>; |
13 } | 13 } |
14 | 14 |
15 location /robots.txt { | 15 location /robots.txt |
| 16 { |
16 root /home/hg/web; | 17 root /home/hg/web; |
17 } | 18 } |
OLD | NEW |