mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 22:12:15 +00:00
work
This commit is contained in:
5
scripts/http_host/mount_btrfs.sh
Normal file
5
scripts/http_host/mount_btrfs.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
mkdir -p mnt_ro
|
||||
sudo mount -v \
|
||||
-t btrfs \
|
||||
-o ro \
|
||||
image.btrfs mnt_ro
|
||||
17
scripts/http_host/nginx_site.conf
Normal file
17
scripts/http_host/nginx_site.conf
Normal file
@@ -0,0 +1,17 @@
|
||||
server {
|
||||
server_name ofm tiles.openfreemaps.org;
|
||||
# test with
|
||||
# curl -H "Host: ofm" http://localhost/planet/20231208_091355/tiles/7/72/48.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;
|
||||
|
||||
alias /data/ofm/runs/planet_20231208_091355/mnt_ro/extract;
|
||||
autoindex on; # Enables listing of directory
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user