This commit is contained in:
Zsolt Ero
2023-12-20 15:14:18 +01:00
parent a960d4de8d
commit 09b7b96b89
2 changed files with 8 additions and 6 deletions

View File

@@ -3,15 +3,18 @@ server {
# test with
# 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 off;
error_log /data/ofm/logs/nginx-error.log;
location /planet/20231208_091355 {
gzip off;
location /planet/20231208_091355/ {
# 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;
autoindex on; # Enables listing of directory
location @empty {
default_type application/x-protobuf;
return 200 '';
}
}