Files
openfreemap/scripts/http_host/nginx_sync/nginx_template.conf
2023-12-30 19:42:19 +01:00

22 lines
603 B
Plaintext

server {
server_name ofm tiles.openfreemap.org;
# disabling access log by default
# access_log /data/ofm/http_host/logs_nginx/nginx-access.log access_json buffer=32k;
access_log off;
error_log /data/ofm/http_host/logs_nginx/nginx-error.log;
___LOCATION_BLOCKS___
# we need to handle missing tiles as valid request returning empty string
location @empty {
default_type application/vnd.mapbox-vector-tile;
return 200 '';
add_header 'Access-Control-Allow-Origin' '*' always;
add_header Cache-Control public;
expires 10y;
}
}