mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
21 lines
543 B
Plaintext
21 lines
543 B
Plaintext
server {
|
|
server_name ofm tiles.openfreemaps.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 Cache-Control public;
|
|
expires 10y;
|
|
}
|
|
}
|