Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperknot committed Dec 20, 2023
1 parent a960d4d commit 09b7b96
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion config/nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# ubuntu specific
user nginx;
pid /var/run/nginx.pid;

Expand Down
13 changes: 8 additions & 5 deletions scripts/http_host/nginx_site.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';
}
}

0 comments on commit 09b7b96

Please sign in to comment.