]> git.openstreetmap.org Git - chef.git/blob - cookbooks/nominatim/templates/default/nginx-qa-tiles.erb
Update matomo to 4.12.1
[chef.git] / cookbooks / nominatim / templates / default / nginx-qa-tiles.erb
1 server {
2     listen 80;
3     listen [::]:80;
4
5     listen 443 ssl http2;
6     listen [::]:443 ssl http2;
7
8     ssl_certificate /etc/ssl/certs/qa-tile.nominatim.openstreetmap.org.pem;
9     ssl_certificate_key /etc/ssl/private/qa-tile.nominatim.openstreetmap.org.key;
10
11     server_name qa-tile.nominatim.openstreetmap.org;
12
13     root <%= @qa_data_directory %>/current;
14
15     access_log <%= node[:nominatim][:logdir] %>/qa-tile.nominatim.openstreetmap.org-access.log combined;
16     error_log <%= node[:nominatim][:logdir] %>/qa-tile.nominatim.openstreetmap.org-error.log;
17
18     rewrite ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 permanent;
19
20     location / {
21         add_header Access-Control-Allow-Origin "*" always;
22     }
23 }