mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
work
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
# ubuntu specific
|
|
||||||
user nginx;
|
user nginx;
|
||||||
pid /var/run/nginx.pid;
|
pid /var/run/nginx.pid;
|
||||||
|
|
||||||
|
|||||||
@@ -3,15 +3,18 @@ server {
|
|||||||
# test with
|
# test with
|
||||||
# curl -H "Host: ofm" http://localhost/planet/20231208_091355/tiles/11/637/1141.pbf
|
# curl -H "Host: ofm" http://localhost/planet/20231208_091355/tiles/11/637/1141.pbf
|
||||||
|
|
||||||
|
|
||||||
#access_log /data/ofm/logs/nginx-access.log access_json;
|
#access_log /data/ofm/logs/nginx-access.log access_json;
|
||||||
access_log off;
|
access_log off;
|
||||||
error_log /data/ofm/logs/nginx-error.log;
|
error_log /data/ofm/logs/nginx-error.log;
|
||||||
|
|
||||||
location /planet/20231208_091355 {
|
location /planet/20231208_091355/ {
|
||||||
gzip off;
|
# trailing / important
|
||||||
|
alias /data/ofm/runs/planet_20231208_091355/mnt_rw/extract/; # trailing / important
|
||||||
|
try_files $uri @empty;
|
||||||
|
}
|
||||||
|
|
||||||
alias /data/ofm/runs/planet_20231208_091355/mnt_rw/extract;
|
location @empty {
|
||||||
autoindex on; # Enables listing of directory
|
default_type application/x-protobuf;
|
||||||
|
return 200 '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user