]> git.openstreetmap.org Git - chef.git/blob - cookbooks/imagery/templates/default/nginx_imagery.conf.erb
Use variable to enable readonly mode, as was used in the previous version of the...
[chef.git] / cookbooks / imagery / templates / default / nginx_imagery.conf.erb
1 server {
2     listen 80;
3     server_name  <%= @name %> a.<%= @name %> b.<%= @name %> c.<%= @name %><% @aliases.each do |alias_name| %> <%= alias_name %> a.<%= alias_name %> b.<%= alias_name %> c.<%= alias_name %><%- end -%>;
4
5     root "/srv/<%= @name %>";
6
7     gzip on;
8     gzip_types text/plain text/css application/json application/javascript application/x-javascript text/javascript text/xml application/xml application/rss+xml application/atom+xml application/rdf+xml image/svg+xml; # text/html is implicit
9     gzip_min_length 512;
10     gzip_http_version 1.0;
11     gzip_proxied any;
12     gzip_comp_level 9;
13     gzip_vary on;
14
15     sendfile   on;
16     tcp_nopush on;
17
18     # Include site imagery layers
19     include /srv/imagery/nginx/<%= @name %>/layer-*.conf;
20 }