mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-22 06:22:16 +00:00
nginx_template
This commit is contained in:
19
scripts/http_host/nginx_sync/nginx_template.conf
Normal file
19
scripts/http_host/nginx_sync/nginx_template.conf
Normal file
@@ -0,0 +1,19 @@
|
||||
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 '';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user